diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 17:39:55 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 17:39:55 +0000 |
commit | afab93e34c7b2c756965816e6505aa085276aacd (patch) | |
tree | 0daebfa1f890c66e680a6107d870a0ba952a61f4 /chrome/browser/browser.cc | |
parent | 9bfd098c90a8662d5f68a9eaa997639b215fff1c (diff) | |
download | chromium_src-afab93e34c7b2c756965816e6505aa085276aacd.zip chromium_src-afab93e34c7b2c756965816e6505aa085276aacd.tar.gz chromium_src-afab93e34c7b2c756965816e6505aa085276aacd.tar.bz2 |
Disable extensions shelf toggle {Ctrl + Alt + B} for extensions appearing on top.
BUG=20936
TEST=none
Review URL: http://codereview.chromium.org/194042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 8227425..1514102 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1166,6 +1166,10 @@ void Browser::ToggleBookmarkBar() { } void Browser::ToggleExtensionShelf() { + if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kShowExtensionsOnTop)) { + return; + } UserMetrics::RecordAction(L"ToggleExtensionShelf", profile_); window_->ToggleExtensionShelf(); } |