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

Unified Diff: ui/base/resource/resource_bundle_ios.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: ui/base/resource/resource_bundle_ios.mm
diff --git a/ui/base/resource/resource_bundle_ios.mm b/ui/base/resource/resource_bundle_ios.mm
index 43a5325f1695e2763c0ea388efb9fdad9d9c087d..6ffb68754d951fbf4d553b23602034f41d42b930 100644
--- a/ui/base/resource/resource_bundle_ios.mm
+++ b/ui/base/resource/resource_bundle_ios.mm
@@ -163,7 +163,7 @@ gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
}
// The gfx::Image takes ownership.
- image = gfx::Image(ui_image.release());
+ image = gfx::Image(ui_image, base::scoped_policy::RETAIN);
}
base::AutoLock lock(*images_and_fonts_lock_);

Powered by Google App Engine
This is Rietveld 408576698