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]; |
} |