diff --git a/chromium_src/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc b/chromium_src/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc index 09a1d3b3c6de..67a20bfba2b6 100644 --- a/chromium_src/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc +++ b/chromium_src/chrome/browser/ui/tabs/recent_tabs_sub_menu_model.cc @@ -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 show_history_clusters_index = + GetIndexOfCommandId(IDC_SHOW_HISTORY_CLUSTERS_SIDE_PANEL); + CHECK(show_history_clusters_index); + RemoveItemAt(show_history_clusters_index.value()); +} BraveRecentTabsSubMenuModel::~BraveRecentTabsSubMenuModel() {}