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

Unified Diff: ios/chrome/browser/root_coordinator.mm

Issue 2566993002: [ObjC ARC] Converts ios/chrome/browser:browser to ARC. (Closed)
Patch Set: comments 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/root_coordinator.h ('k') | ios/chrome/browser/xcallback_parameters.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/root_coordinator.mm
diff --git a/ios/chrome/browser/root_coordinator.mm b/ios/chrome/browser/root_coordinator.mm
index c9f52b6107c804b3288125da88392bc04ea53668..4604fc8131357d2af4f63da7470069bea8e786ca 100644
--- a/ios/chrome/browser/root_coordinator.mm
+++ b/ios/chrome/browser/root_coordinator.mm
@@ -4,19 +4,18 @@
#import "ios/chrome/browser/root_coordinator.h"
-#include "base/ios/weak_nsobject.h"
#include "base/logging.h"
-@interface RootCoordinator () {
- base::WeakNSObject<UIWindow> _window;
-}
-@end
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@implementation RootCoordinator
+@synthesize window = _window;
- (instancetype)initWithWindow:(UIWindow*)window {
if ((self = [super initWithBaseViewController:nil])) {
- _window.reset(window);
+ _window = window;
}
return self;
}
@@ -26,10 +25,4 @@
return nil;
}
-#pragma mark - property implementation
-
-- (nullable UIWindow*)window {
- return _window;
-}
-
@end
« no previous file with comments | « ios/chrome/browser/root_coordinator.h ('k') | ios/chrome/browser/xcallback_parameters.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698