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

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: 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 | « ios/chrome/browser/suggestions/image_fetcher_impl.mm ('k') | ui/base/resource/resource_bundle_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e3525d137a1250788471f8aad6a205c8436c6788..b400cad0e269d4b8a4c1bc4ac8a28376c89548d4 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;
}
« no previous file with comments | « ios/chrome/browser/suggestions/image_fetcher_impl.mm ('k') | ui/base/resource/resource_bundle_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698