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