remove CommandNewTabToLeft from src// and move to .patch

This commit is contained in:
Alexander Frick 2024-09-27 19:56:40 -05:00
parent 0cbec13a22
commit 7f737d5000
2 changed files with 0 additions and 11 deletions

View file

@ -1463,7 +1463,6 @@ bool TabStripModel::IsContextMenuCommandEnabled(
ContextMenuCommand command_id) const { ContextMenuCommand command_id) const {
DCHECK(command_id > CommandFirst && command_id < CommandLast); DCHECK(command_id > CommandFirst && command_id < CommandLast);
switch (command_id) { switch (command_id) {
case CommandNewTabToLeft:
case CommandNewTabToRight: case CommandNewTabToRight:
case CommandCloseTab: case CommandCloseTab:
return true; return true;
@ -1575,15 +1574,6 @@ void TabStripModel::ExecuteContextMenuCommand(int context_index,
if (!ContainsIndex(context_index)) if (!ContainsIndex(context_index))
return; return;
switch (command_id) { switch (command_id) {
case CommandNewTabToLeft: {
base::RecordAction(UserMetricsAction("TabContextMenu_NewTab"));
UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", NewTabTypes::NEW_TAB_CONTEXT_MENU,
NewTabTypes::NEW_TAB_ENUM_COUNT);
delegate()->AddTabAt(GURL(), context_index, true,
GetTabGroupForTab(context_index));
break;
}
case CommandNewTabToRight: { case CommandNewTabToRight: {
base::RecordAction(UserMetricsAction("TabContextMenu_NewTab")); base::RecordAction(UserMetricsAction("TabContextMenu_NewTab"));
UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", NewTabTypes::NEW_TAB_CONTEXT_MENU, UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", NewTabTypes::NEW_TAB_CONTEXT_MENU,

View file

@ -553,7 +553,6 @@ class TabStripModel : public TabGroupController {
// for entries in the 'Add to existing group' submenu. // for entries in the 'Add to existing group' submenu.
enum ContextMenuCommand { enum ContextMenuCommand {
CommandFirst, CommandFirst,
CommandNewTabToLeft,
CommandNewTabToRight, CommandNewTabToRight,
CommandReload, CommandReload,
CommandDuplicate, CommandDuplicate,