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

Unified Diff: ios/clean/chrome/browser/ui/ntp/ntp_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 side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm b/ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm
index bcfe9259e7aff6f64528d6959902b4de64b629ae..f125c411bad220ebaa23fbf9a6c90823ff8d1fcc 100644
--- a/ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm
@@ -33,21 +33,20 @@
self.viewController = [[NTPViewController alloc] init];
self.mediator = [[NTPMediator alloc] initWithConsumer:self.viewController];
- CommandDispatcher* dispatcher = self.browser->dispatcher();
// NTPCommands
- [dispatcher startDispatchingToTarget:self
- forSelector:@selector(showNTPHomePanel)];
- [dispatcher startDispatchingToTarget:self
- forSelector:@selector(showNTPBookmarksPanel)];
- [dispatcher startDispatchingToTarget:self
- forSelector:@selector(showNTPRecentTabsPanel)];
- self.viewController.dispatcher = static_cast<id>(self.browser->dispatcher());
+ [self.dispatcher startDispatchingToTarget:self
+ forSelector:@selector(showNTPHomePanel)];
+ [self.dispatcher startDispatchingToTarget:self
+ forSelector:@selector(showNTPBookmarksPanel)];
+ [self.dispatcher startDispatchingToTarget:self
+ forSelector:@selector(showNTPRecentTabsPanel)];
+ self.viewController.dispatcher = self.callableDispatcher;
[super start];
}
- (void)stop {
[super stop];
- [self.browser->dispatcher() stopDispatchingToTarget:self];
+ [self.dispatcher stopDispatchingToTarget:self];
}
- (void)childCoordinatorDidStart:(BrowserCoordinator*)coordinator {

Powered by Google App Engine
This is Rietveld 408576698