diff options
author | altimofeev@chromium.org <altimofeev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 11:54:13 +0000 |
---|---|---|
committer | altimofeev@chromium.org <altimofeev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 11:54:13 +0000 |
commit | f8b18202f5cadef38d531477642bb9845ed852c0 (patch) | |
tree | 4243a2caafc57ca0e610abe333d5975e43bd524d /chrome/browser/tabs | |
parent | 3cc5922dbc5f1668bc1cd4f691286c5a7218c167 (diff) | |
download | chromium_src-f8b18202f5cadef38d531477642bb9845ed852c0.zip chromium_src-f8b18202f5cadef38d531477642bb9845ed852c0.tar.gz chromium_src-f8b18202f5cadef38d531477642bb9845ed852c0.tar.bz2 |
Disables "Bookmark all tabs" item in the tab contex menu.
BUG=chromium-os:6028
TEST=Go BWSI session, open at least 2 tabs, notice item "Bookmark all tabs" is disabled.
Review URL: http://codereview.chromium.org/3440008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index 14df8d1..f27b5a8 100644 --- a/chrome/browser/tabs/tab_strip_model.cc +++ b/chrome/browser/tabs/tab_strip_model.cc @@ -660,7 +660,8 @@ bool TabStripModel::IsContextMenuCommandEnabled( case CommandTogglePinned: return !IsAppTab(context_index); case CommandBookmarkAllTabs: - return delegate_->CanBookmarkAllTabs(); + return browser_defaults::bookmarks_enabled && + delegate_->CanBookmarkAllTabs(); case CommandUseVerticalTabs: return true; default: |