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

Unified Diff: ui/gfx/image/image.cc

Issue 2500373004: Changes behavior of iOS-specific gfx::Image constructor. (Closed)
Patch Set: remove files 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 | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.cc
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index e3bcefcea217b644f8d2dda379b99cce31f89bce..12254c17def66a5b46fb45db8257732cf14af173 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -420,7 +420,7 @@ Image::Image(const ImageSkia& image) {
}
#if defined(OS_IOS)
-Image::Image(UIImage* image) : Image(image, base::scoped_policy::ASSUME) {}
+Image::Image(UIImage* image) : Image(image, base::scoped_policy::RETAIN) {}
Image::Image(UIImage* image, base::scoped_policy::OwnershipPolicy policy)
: storage_(new internal::ImageStorage(Image::kImageRepCocoaTouch)) {
« no previous file with comments | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698