Index: ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm |
diff --git a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm |
index 6198cab7d5b55770b97724151373fdd9f7165066..cae580d00b2f5d6e336071f24a8b526969ecf6f7 100644 |
--- a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm |
+++ b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm |
@@ -64,12 +64,11 @@ |
- (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator { |
// Register to receive relevant ContextMenuCommands. |
if ([childCoordinator isKindOfClass:[WebContextMenuCoordinator class]]) { |
- [self.browser->dispatcher() |
+ [self.dispatcher |
startDispatchingToTarget:self |
forSelector:@selector(executeContextMenuScript:)]; |
- [self.browser->dispatcher() |
- startDispatchingToTarget:self |
- forSelector:@selector(openContextMenuImage:)]; |
+ [self.dispatcher startDispatchingToTarget:self |
+ forSelector:@selector(openContextMenuImage:)]; |
} |
[self.viewController presentViewController:childCoordinator.viewController |
animated:YES |
@@ -79,9 +78,9 @@ |
- (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator { |
// Unregister ContextMenuCommands once the UI has been dismissed. |
if ([childCoordinator isKindOfClass:[WebContextMenuCoordinator class]]) { |
- [self.browser->dispatcher() |
+ [self.dispatcher |
stopDispatchingForSelector:@selector(executeContextMenuScript:)]; |
- [self.browser->dispatcher() |
+ [self.dispatcher |
stopDispatchingForSelector:@selector(openContextMenuImage:)]; |
} |
} |