diff --git a/ios/clean/chrome/browser/ui/tools/BUILD.gn b/ios/clean/chrome/browser/ui/tools/BUILD.gn index d13cffd745987..d3cf5c2df279a 100644 --- a/ios/clean/chrome/browser/ui/tools/BUILD.gn +++ b/ios/clean/chrome/browser/ui/tools/BUILD.gn @@ -15,8 +15,8 @@ source_set("tools") { deps = [ ":tools_ui", "//base", - "//ios/clean/chrome/browser/ui/actions", "//ios/clean/chrome/browser/ui/animators", + "//ios/clean/chrome/browser/ui/commands", "//ios/clean/chrome/browser/ui/presenters", "//ios/shared/chrome/browser/ui/browser_list", "//ios/shared/chrome/browser/ui/coordinators", diff --git a/ios/clean/chrome/browser/ui/tools/menu_view_controller.mm b/ios/clean/chrome/browser/ui/tools/menu_view_controller.mm index cbe9f767c2215..5cbc58075070b 100644 --- a/ios/clean/chrome/browser/ui/tools/menu_view_controller.mm +++ b/ios/clean/chrome/browser/ui/tools/menu_view_controller.mm @@ -69,9 +69,7 @@ - (void)viewDidLoad { action:@selector(closeToolsMenu) forControlEvents:UIControlEventTouchUpInside]; if (item.action) { - id target = - (item.action == @selector(showFindInPage)) ? self.dispatcher : nil; - [menuButton addTarget:target + [menuButton addTarget:self.dispatcher action:item.action forControlEvents:UIControlEventTouchUpInside]; } diff --git a/ios/clean/chrome/browser/ui/tools/tools_mediator.mm b/ios/clean/chrome/browser/ui/tools/tools_mediator.mm index a7e17da302e19..f943a4b2c4d5c 100644 --- a/ios/clean/chrome/browser/ui/tools/tools_mediator.mm +++ b/ios/clean/chrome/browser/ui/tools/tools_mediator.mm @@ -4,7 +4,7 @@ #import "ios/clean/chrome/browser/ui/tools/tools_mediator.h" -#import "ios/clean/chrome/browser/ui/actions/settings_actions.h" +#import "ios/clean/chrome/browser/ui/commands/settings_commands.h" #import "ios/clean/chrome/browser/ui/tools/tools_actions.h" #import "ios/clean/chrome/browser/ui/tools/tools_consumer.h" #import "ios/clean/chrome/browser/ui/tools/tools_menu_item.h" @@ -68,7 +68,7 @@ - (void)setConsumer:(id)consumer { menuItems[8].title = @"Request Desktop Site"; menuItems[9].title = @"Settings"; - menuItems[9].action = @selector(showSettings:); + menuItems[9].action = @selector(showSettings); menuItems[10].title = @"Help";