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

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

Issue 2569713002: [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
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
« no previous file with comments | « ios/chrome/browser/ui/native_content_controller.h ('k') | ios/chrome/browser/ui/orientation_limiting_navigation_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698