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

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

Issue 2569213002: [ObjC ARC] Reland of 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 31d7f4da359b60697605efddb0f2ce7eb53dfaa6..d21b44da54114be93c19e45c8ab642c44366e5b5 100644
--- a/ios/chrome/browser/ui/background_generator.mm
+++ b/ios/chrome/browser/ui/background_generator.mm
@@ -10,9 +10,12 @@
#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.
UIImage* GetRadialGradient(CGRect backgroundRect,
@@ -48,8 +51,7 @@ UIImage* GetRadialGradient(CGRect backgroundRect,
}
void InstallBackgroundInView(UIView* view) {
- UIImageView* imageView =
- [[[UIImageView alloc] initWithFrame:view.bounds] autorelease];
+ UIImageView* imageView = [[UIImageView alloc] initWithFrame:view.bounds];
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