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

Unified Diff: ios/clean/chrome/browser/ui/tools/tools_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/tools/tools_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
index bc1c573b5a73881aeae3667d20971adfc3b9b739..7f3bf4ad39ca942105c97c9bc9f339db681f651e 100644
--- a/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/tools/tools_coordinator.mm
@@ -31,7 +31,7 @@
self.viewController = [[MenuViewController alloc] init];
self.viewController.modalPresentationStyle = UIModalPresentationCustom;
self.viewController.transitioningDelegate = self;
- self.viewController.dispatcher = static_cast<id>(self.browser->dispatcher());
+ self.viewController.dispatcher = self.callableDispatcher;
self.mediator =
[[ToolsMediator alloc] initWithConsumer:self.viewController
configuration:self.toolsMenuConfiguration];
@@ -78,7 +78,7 @@ presentationControllerForPresentedViewController:(UIViewController*)presented
[[MenuPresentationController alloc]
initWithPresentedViewController:presented
presentingViewController:presenting];
- menuPresentation.dispatcher = static_cast<id>(self.browser->dispatcher());
+ menuPresentation.dispatcher = self.callableDispatcher;
return menuPresentation;
}

Powered by Google App Engine
This is Rietveld 408576698