Index: ios/chrome/browser/ui/native_content_controller.mm |
diff --git a/ios/chrome/browser/ui/native_content_controller.mm b/ios/chrome/browser/ui/native_content_controller.mm |
index 59f7a3b391ad0dd6aef9ecedf116d9c6b956bb98..0fd43a252e964b03e62cb163b29b89c6ef96b0a9 100644 |
--- a/ios/chrome/browser/ui/native_content_controller.mm |
+++ b/ios/chrome/browser/ui/native_content_controller.mm |
@@ -8,13 +8,11 @@ |
#include "base/mac/bundle_locations.h" |
#import "base/mac/foundation_util.h" |
- |
-#if !defined(__has_feature) || !__has_feature(objc_arc) |
-#error "This file requires ARC support." |
-#endif |
+#include "base/mac/objc_property_releaser.h" |
@implementation NativeContentController { |
GURL _url; |
+ base::mac::ObjCPropertyReleaser _propertyReleaser_NativeContentController; |
} |
@synthesize view = _view; |
@@ -24,6 +22,8 @@ |
- (instancetype)initWithNibName:(NSString*)nibName url:(const GURL&)url { |
self = [super init]; |
if (self) { |
+ _propertyReleaser_NativeContentController.Init( |
+ self, [NativeContentController class]); |
if (nibName.length) { |
[base::mac::FrameworkBundle() loadNibNamed:nibName |
owner:self |
@@ -34,12 +34,18 @@ |
return self; |
} |
+- (instancetype)init { |
+ NOTREACHED(); |
+ return nil; |
+} |
+ |
- (instancetype)initWithURL:(const GURL&)url { |
return [self initWithNibName:nil url:url]; |
} |
- (void)dealloc { |
[_view removeFromSuperview]; |
+ [super dealloc]; |
} |
#pragma mark CRWNativeContent |