commit | 3aec8ba82a4859ba5a750888c21e045db5d55bd1 | [log] [tgz] |
---|---|---|
author | Robbie Gibson <rkgibson@google.com> | Tue Mar 19 16:12:27 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 19 16:12:27 2019 |
tree | 1deb64e37425bda8bedf9a929f6687debc02ce35 | |
parent | 0d27b5ac5f5e1fd310ffd825de0938cebc797654 [diff] |
Fix Search-by-image crash when given a nil image/data My thought was that ResizedImageForSearchByImage should be fine with an empty image. If, on iOS, it's passed a non-empty image with no UIImage representation, that will still crash, but is probably ok (although if that's what DCHECK should be used for, let me know). Bug: 943145 Change-Id: If617822090273af64a757666a09afa8a4e4861d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1530761 Reviewed-by: Mark Cogan <marq@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Robbie Gibson <rkgibson@google.com> Cr-Commit-Position: refs/heads/master@{#641993}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .