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

Side by Side Diff: ios/clean/chrome/browser/ui/settings/settings_coordinator.mm

Issue 2935653002: [ios clean] Move dispatcher out of Browser.
Patch Set: Dispatcher out of Browser. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698