Skip to content

Commit

Permalink
Re-hook Settings in CSChromium
Browse files Browse the repository at this point in the history
BUG=none
[email protected]

Review-Url: https://codereview.chromium.org/2863753003
Cr-Commit-Position: refs/heads/master@{#469696}
  • Loading branch information
Arcank authored and Commit bot committed May 5, 2017
1 parent 5bc3818 commit 3337a25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ios/clean/chrome/browser/ui/tools/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions ios/clean/chrome/browser/ui/tools/menu_view_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
4 changes: 2 additions & 2 deletions ios/clean/chrome/browser/ui/tools/tools_mediator.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -68,7 +68,7 @@ - (void)setConsumer:(id<ToolsConsumer>)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";

Expand Down

0 comments on commit 3337a25

Please sign in to comment.