| 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 =
|
|
|