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

Unified Diff: ios/chrome/browser/ui/background_generator.mm

Issue 2567203002: Revert of [ObjC ARC] Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: 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/ui/animation_util.mm ('k') | ios/chrome/browser/ui/browser_otr_state.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/background_generator.mm
diff --git a/ios/chrome/browser/ui/background_generator.mm b/ios/chrome/browser/ui/background_generator.mm
index d21b44da54114be93c19e45c8ab642c44366e5b5..31d7f4da359b60697605efddb0f2ce7eb53dfaa6 100644
--- a/ios/chrome/browser/ui/background_generator.mm
+++ b/ios/chrome/browser/ui/background_generator.mm
@@ -10,11 +10,8 @@
#include "base/mac/bundle_locations.h"
#include "base/mac/foundation_util.h"
#include "base/mac/scoped_cftyperef.h"
+#import "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/ui_util.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
// This is a utility function that may be used as a standalone helper function
// to generate a radial gradient UIImage.
@@ -51,7 +48,8 @@
}
void InstallBackgroundInView(UIView* view) {
- UIImageView* imageView = [[UIImageView alloc] initWithFrame:view.bounds];
+ UIImageView* imageView =
+ [[[UIImageView alloc] initWithFrame:view.bounds] autorelease];
imageView.image = [UIImage imageNamed:@"stack_view_background_noise.jpg"];
imageView.contentMode = UIViewContentModeScaleAspectFill;
imageView.autoresizingMask =
« no previous file with comments | « ios/chrome/browser/ui/animation_util.mm ('k') | ios/chrome/browser/ui/browser_otr_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698