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

Unified Diff: ios/clean/chrome/browser/ui/context_menu/web_context_menu_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/context_menu/web_context_menu_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.mm b/ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.mm
index a86ea5975aa03677e54c3b615f5e1fa223065e11..c0224d97a5963413ea625fa0062ddddf4d99f272 100644
--- a/ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.mm
@@ -40,20 +40,17 @@
#pragma mark - BrowserCoordinator
- (void)start {
- id<ContextMenuCommands> contextMenuDispatcher =
- static_cast<id<ContextMenuCommands>>(self.browser->dispatcher());
self.viewController = [[ContextMenuViewController alloc]
- initWithDispatcher:contextMenuDispatcher];
+ initWithDispatcher:self.callableDispatcher];
[ContextMenuMediator updateConsumer:self.viewController
withContext:self.context];
- [self.browser->dispatcher()
- startDispatchingToTarget:self
- forSelector:@selector(hideContextMenu:)];
+ [self.dispatcher startDispatchingToTarget:self
+ forSelector:@selector(hideContextMenu:)];
[super start];
}
- (void)stop {
- [self.browser->dispatcher() stopDispatchingToTarget:self];
+ [self.dispatcher stopDispatchingToTarget:self];
[super stop];
[self.parentCoordinator removeChildCoordinator:self];
}

Powered by Google App Engine
This is Rietveld 408576698