mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 19:37:30 -03:00
remove CommandNewTabToLeft from src// and move to .patch
This commit is contained in:
parent
0cbec13a22
commit
7f737d5000
2 changed files with 0 additions and 11 deletions
|
@ -1463,7 +1463,6 @@ bool TabStripModel::IsContextMenuCommandEnabled(
|
|||
ContextMenuCommand command_id) const {
|
||||
DCHECK(command_id > CommandFirst && command_id < CommandLast);
|
||||
switch (command_id) {
|
||||
case CommandNewTabToLeft:
|
||||
case CommandNewTabToRight:
|
||||
case CommandCloseTab:
|
||||
return true;
|
||||
|
@ -1575,15 +1574,6 @@ void TabStripModel::ExecuteContextMenuCommand(int context_index,
|
|||
if (!ContainsIndex(context_index))
|
||||
return;
|
||||
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: {
|
||||
base::RecordAction(UserMetricsAction("TabContextMenu_NewTab"));
|
||||
UMA_HISTOGRAM_ENUMERATION("Tab.NewTab", NewTabTypes::NEW_TAB_CONTEXT_MENU,
|
||||
|
|
|
@ -553,7 +553,6 @@ class TabStripModel : public TabGroupController {
|
|||
// for entries in the 'Add to existing group' submenu.
|
||||
enum ContextMenuCommand {
|
||||
CommandFirst,
|
||||
CommandNewTabToLeft,
|
||||
CommandNewTabToRight,
|
||||
CommandReload,
|
||||
CommandDuplicate,
|
||||
|
|
Loading…
Reference in a new issue