Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: ios/chrome/browser/suggestions/image_fetcher_impl.mm

Issue 2504683002: Adds a new constructor for gfx::Image on iOS. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/suggestions/ios_image_decoder_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/suggestions/image_fetcher_impl.mm
diff --git a/ios/chrome/browser/suggestions/image_fetcher_impl.mm b/ios/chrome/browser/suggestions/image_fetcher_impl.mm
index 9920987f21e81c2894208e8a84235a93f8f93c63..7b56099c44a97040f0fa5a4a396b6852f54202e9 100644
--- a/ios/chrome/browser/suggestions/image_fetcher_impl.mm
+++ b/ios/chrome/browser/suggestions/image_fetcher_impl.mm
@@ -61,7 +61,7 @@ void ImageFetcherImpl::StartOrQueueNetworkRequest(
// Most likely always returns 1x images.
UIImage* ui_image = [UIImage imageWithData:data scale:1];
if (ui_image) {
- gfx::Image gfx_image(ui_image);
+ gfx::Image gfx_image(ui_image, base::scoped_policy::ASSUME);
callback.Run(fetch_id, gfx_image);
if (delegate_) {
delegate_->OnImageFetched(fetch_id, gfx_image);
« no previous file with comments | « no previous file | ios/chrome/browser/suggestions/ios_image_decoder_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698