[EoS] Fix image decoding
This patch fixes a few issues found while trying to hook up image decoding end-to-end: * The images are improperly inserted into the database, since binding as string uses the text type, which tries to use UTF8 encoding (which doesn't work for binary blobs.) * Decode failures used to cause a DCHECK, now just bail out with an error value * A callback was called one too many times, even after std::move. * A crash would happen if a category had no images. Bug: 867488 Change-Id: Ie28c01e28bd746b9a90563c228775ff3b5a8f83f Reviewed-on: https://chromium-review.googlesource.com/1248041Reviewed-by:Cathy Li <chili@chromium.org> Commit-Queue: Justin DeWitt <dewittj@chromium.org> Cr-Commit-Position: refs/heads/master@{#595514}
Showing
Please register or sign in to comment