Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8681)

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 3440008: Disables "Bookmark all tabs" item in the tab contex menu. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: review iteration Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 14df8d1be6522e85a0de3e6ccdb5017c9ea80d89..f27b5a8fcefd442e574e1dd5409f8179178cb09c 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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698