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 0fd43a252e964b03e62cb163b29b89c6ef96b0a9..59f7a3b391ad0dd6aef9ecedf116d9c6b956bb98 100644 |
--- a/ios/chrome/browser/ui/native_content_controller.mm |
+++ b/ios/chrome/browser/ui/native_content_controller.mm |
@@ -8,11 +8,13 @@ |
#include "base/mac/bundle_locations.h" |
#import "base/mac/foundation_util.h" |
-#include "base/mac/objc_property_releaser.h" |
+ |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
@implementation NativeContentController { |
GURL _url; |
- base::mac::ObjCPropertyReleaser _propertyReleaser_NativeContentController; |
} |
@synthesize view = _view; |
@@ -22,8 +24,6 @@ |
- (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,18 +34,12 @@ |
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 |