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

Unified Diff: ios/chrome/browser/ui/settings/settings_coordinator.mm

Issue 2592983003: [Clean Skeleton] Migrate code to clean/ (Closed)
Patch Set: Rebased Created 3 years, 11 months 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/ui/settings/settings_coordinator.h ('k') | ios/chrome/browser/ui/strip/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/settings/settings_coordinator.mm
diff --git a/ios/chrome/browser/ui/settings/settings_coordinator.mm b/ios/chrome/browser/ui/settings/settings_coordinator.mm
deleted file mode 100644
index 87dcd87a07682856bc6a189118e58f769f1559b3..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/settings/settings_coordinator.mm
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// ====== New Architecture =====
-// = This code is only used in the new iOS Chrome architecture. =
-// ============================================================================
-
-#import "ios/chrome/browser/ui/settings/settings_coordinator.h"
-
-#import "ios/chrome/browser/browser_coordinator+internal.h"
-#import "ios/chrome/browser/ui/commands/settings_commands.h"
-#import "ios/chrome/browser/ui/settings/settings_navigation_controller.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-@interface SettingsCoordinator ()<SettingsNavigationControllerDelegate>
-@property(nonatomic, strong) SettingsNavigationController* viewController;
-@end
-
-@implementation SettingsCoordinator
-@synthesize settingsCommandHandler = _settingsCommandHandler;
-@synthesize viewController = _viewController;
-
-#pragma mark - BrowserCoordinator
-
-- (void)start {
- self.viewController = [SettingsNavigationController
- newSettingsMainControllerWithMainBrowserState:self.browserState
- currentBrowserState:self.browserState
- delegate:self];
- [self.rootViewController presentViewController:self.viewController
- animated:YES
- completion:nil];
-}
-
-- (void)stop {
- [self.viewController dismissViewControllerAnimated:YES completion:nil];
-}
-
-#pragma mark - SettingsNavigationControllerDelegate
-
-- (void)closeSettingsAndOpenUrl:(OpenUrlCommand*)command {
- // Placeholder implementation to conform to the delegate protocol;
- // for now this just closes the settings without opening a URL.
- [self closeSettings];
-}
-
-- (void)closeSettingsAndOpenNewIncognitoTab {
- // Placeholder implementation to conform to the delegate protocol;
- // for now this just closes the settings without opening a new tab.
- [self closeSettings];
-}
-
-- (void)closeSettings {
- [self.settingsCommandHandler closeSettings];
-}
-
-@end
« no previous file with comments | « ios/chrome/browser/ui/settings/settings_coordinator.h ('k') | ios/chrome/browser/ui/strip/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698