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 #import "ios/clean/chrome/browser/ui/settings/settings_coordinator.h" | 5 #import "ios/clean/chrome/browser/ui/settings/settings_coordinator.h" |
6 | 6 |
7 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" | 7 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
8 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" | 8 #import "ios/clean/chrome/browser/ui/commands/settings_commands.h" |
9 #import "ios/shared/chrome/browser/ui/browser_list/browser.h" | 9 #import "ios/shared/chrome/browser/ui/browser_list/browser.h" |
10 #import "ios/shared/chrome/browser/ui/commands/command_dispatcher.h" | 10 #import "ios/shared/chrome/browser/ui/commands/command_dispatcher.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 [self closeSettings]; | 41 [self closeSettings]; |
42 } | 42 } |
43 | 43 |
44 - (void)closeSettingsAndOpenNewIncognitoTab { | 44 - (void)closeSettingsAndOpenNewIncognitoTab { |
45 // Placeholder implementation to conform to the delegate protocol; | 45 // Placeholder implementation to conform to the delegate protocol; |
46 // for now this just closes the settings without opening a new tab. | 46 // for now this just closes the settings without opening a new tab. |
47 [self closeSettings]; | 47 [self closeSettings]; |
48 } | 48 } |
49 | 49 |
50 - (void)closeSettings { | 50 - (void)closeSettings { |
51 [static_cast<id>(self.browser->dispatcher()) closeSettings]; | 51 [self.callableDispatcher closeSettings]; |
52 } | 52 } |
53 | 53 |
54 @end | 54 @end |
OLD | NEW |