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

Unified Diff: ui/base/resource/resource_bundle_ios.mm

Issue 2504683002: Adds a new constructor for gfx::Image on iOS. (Closed)
Patch Set: Created 4 years, 1 month 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..b7115119cfcc3c3e26e746a8fec86fac06111da0 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, true);
}
base::AutoLock lock(*images_and_fonts_lock_);

Powered by Google App Engine
This is Rietveld 408576698