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; |
} |