mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -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 {
|
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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue