Skip to content

Commit

Permalink
Merge pull request #24428 from brave/maxk-hide-history-groups-menu-item
Browse files Browse the repository at this point in the history
Hides Grouped History menu item.
  • Loading branch information
mkarolin committed Jul 2, 2024
1 parent 2503bbe commit 6180543
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ const char kBraveSyncedTabsUrl[] = "brave://history/syncedTabs";
BraveRecentTabsSubMenuModel::BraveRecentTabsSubMenuModel(
ui::AcceleratorProvider* accelerator_provider,
Browser* browser)
: RecentTabsSubMenuModel(accelerator_provider, browser) {}
: RecentTabsSubMenuModel(accelerator_provider, browser) {
// We disable history clusters feature, so this command won't work.
std::optional<size_t> show_history_clusters_index =
GetIndexOfCommandId(IDC_SHOW_HISTORY_CLUSTERS_SIDE_PANEL);
CHECK(show_history_clusters_index);
RemoveItemAt(show_history_clusters_index.value());
}

BraveRecentTabsSubMenuModel::~BraveRecentTabsSubMenuModel() {}

Expand Down

0 comments on commit 6180543

Please sign in to comment.