Fix DCHECK on attempt to crop blank thumbnail
ThumbnailImage::CropPreviewImage relies on the supplied thumbnail having non-null image data. A null thumbnail was passed when ClearData was called. It is not necessary to crop a null thumbnail, so avoid calling it when the thumbnail is null. Fixed: 1168483 Change-Id: I89de21fb69f49069c44db54f4e82f80c3afa7da8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2641156Reviewed-by:Dana Fried <dfried@chromium.org> Commit-Queue: Dana Fried <dfried@chromium.org> Auto-Submit: Collin Baker <collinbaker@chromium.org> Cr-Commit-Position: refs/heads/master@{#845590}
Showing
Please register or sign in to comment