Skip to content

Commit

Permalink
Hide RenderViewContextMenu::AddSpellCheckServiceItem method with
Browse files Browse the repository at this point in the history
one in BraveRenderViewContextMenu that does not add Ask Brave menu item.

Fixes brave/brave-browser#1623
  • Loading branch information
mkarolin committed Oct 18, 2018
1 parent d3bc8e0 commit 1d53a44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ void BraveRenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
RenderViewContextMenu_Chromium::ExecuteCommand(id, event_flags);
}
}

// static
void BraveRenderViewContextMenu::AddSpellCheckServiceItem(
ui::SimpleMenuModel* menu,
bool is_checked) {
// Suppress adding "Spellcheck->Ask Brave for suggestions" item
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class BraveRenderViewContextMenu : public RenderViewContextMenu_Chromium {
void AppendBraveLinkItems() override;
bool IsCommandIdEnabled(int command_id) const override;
void ExecuteCommand(int id, int event_flags) override;
static void AddSpellCheckServiceItem(ui::SimpleMenuModel* menu,
bool is_checked);
};

// Use our own subclass as the real RenderViewContextMenu.
Expand Down

0 comments on commit 1d53a44

Please sign in to comment.