diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 05:37:53 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 05:37:53 +0000 |
commit | 12c68c2f1f05cd8fbe453694b4c04ac25d08c1a8 (patch) | |
tree | b7f34c6082f0251e5237db4c524a7b46acc5980e /chrome/browser/tab_menu_model.cc | |
parent | f381dfa196a8da9382ff6c4b109216b5d166c148 (diff) | |
download | chromium_src-12c68c2f1f05cd8fbe453694b4c04ac25d08c1a8.zip chromium_src-12c68c2f1f05cd8fbe453694b4c04ac25d08c1a8.tar.gz chromium_src-12c68c2f1f05cd8fbe453694b4c04ac25d08c1a8.tar.bz2 |
Revert 45906 - Relands your patch to have an option for enabling vertical tabs. I've
added the following additions:
. made the layout work for opaque_browser_frame.
. Only show the menu if the user supplied enableverticaltabs.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1708014
TBR=sky@chromium.org
Review URL: http://codereview.chromium.org/1795010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_menu_model.cc')
-rw-r--r-- | chrome/browser/tab_menu_model.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/chrome/browser/tab_menu_model.cc b/chrome/browser/tab_menu_model.cc index f955837..bb0ba34 100644 --- a/chrome/browser/tab_menu_model.cc +++ b/chrome/browser/tab_menu_model.cc @@ -4,9 +4,7 @@ #include "chrome/browser/tab_menu_model.h" -#include "base/command_line.h" #include "chrome/browser/tabs/tab_strip_model.h" -#include "chrome/common/chrome_switches.h" #include "grit/generated_resources.h" TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, @@ -15,16 +13,6 @@ TabMenuModel::TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, Build(is_pinned); } -// static -bool TabMenuModel::AreVerticalTabsEnabled() { -#if defined(TOOLKIT_VIEWS) - return CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableVerticalTabs); -#else - return false; -#endif -} - void TabMenuModel::Build(bool is_pinned) { AddItemWithStringId(TabStripModel::CommandNewTab, IDS_TAB_CXMENU_NEWTAB); AddSeparator(); @@ -47,9 +35,4 @@ void TabMenuModel::Build(bool is_pinned) { AddItemWithStringId(TabStripModel::CommandRestoreTab, IDS_RESTORE_TAB); AddItemWithStringId(TabStripModel::CommandBookmarkAllTabs, IDS_TAB_CXMENU_BOOKMARK_ALL_TABS); - if (AreVerticalTabsEnabled()) { - AddSeparator(); - AddCheckItemWithStringId(TabStripModel::CommandUseVerticalTabs, - IDS_TAB_CXMENU_USE_VERTICAL_TABS); - } } |