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

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

Issue 2504683002: Adds a new constructor for gfx::Image on iOS. (Closed)
Patch Set: Feedback 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
Index: ios/chrome/browser/suggestions/ios_image_decoder_impl.mm
diff --git a/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm b/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm
index 52fc55073344bc9ee36b61d96cc025bec5caf310..5e87fcc984cc07038842d421182cad71d0870c61 100644
--- a/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm
+++ b/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm
@@ -148,7 +148,7 @@ void IOSImageDecoderImpl::CreateUIImageAndRunCallback(
// This constructor does not retain the image, but expects to take the
// ownership, therefore, |ui_image| is retained here, but not released
// afterwards.
- gfx::Image gfx_image([ui_image retain]);
+ gfx::Image gfx_image(ui_image, base::scoped_policy::RETAIN);
callback.Run(gfx_image);
return;
}

Powered by Google App Engine
This is Rietveld 408576698