| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #import "ios/chrome/browser/ui/settings/settings_coordinator.h" | 9 #import "ios/clean/chrome/browser/ui/settings/settings_coordinator.h" |
| 10 | 10 |
| 11 #import "ios/chrome/browser/browser_coordinator+internal.h" | |
| 12 #import "ios/chrome/browser/ui/commands/settings_commands.h" | |
| 13 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" | 11 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
| 12 #import "ios/clean/chrome/browser/browser_coordinator+internal.h" |
| 13 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" |
| 14 | 14 |
| 15 #if !defined(__has_feature) || !__has_feature(objc_arc) | 15 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 16 #error "This file requires ARC support." | 16 #error "This file requires ARC support." |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 @interface SettingsCoordinator ()<SettingsNavigationControllerDelegate> | 19 @interface SettingsCoordinator ()<SettingsNavigationControllerDelegate> |
| 20 @property(nonatomic, strong) SettingsNavigationController* viewController; | 20 @property(nonatomic, strong) SettingsNavigationController* viewController; |
| 21 @end | 21 @end |
| 22 | 22 |
| 23 @implementation SettingsCoordinator | 23 @implementation SettingsCoordinator |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 // Placeholder implementation to conform to the delegate protocol; | 52 // Placeholder implementation to conform to the delegate protocol; |
| 53 // for now this just closes the settings without opening a new tab. | 53 // for now this just closes the settings without opening a new tab. |
| 54 [self closeSettings]; | 54 [self closeSettings]; |
| 55 } | 55 } |
| 56 | 56 |
| 57 - (void)closeSettings { | 57 - (void)closeSettings { |
| 58 [self.settingsCommandHandler closeSettings]; | 58 [self.settingsCommandHandler closeSettings]; |
| 59 } | 59 } |
| 60 | 60 |
| 61 @end | 61 @end |
| OLD | NEW |