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

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 807053005: Use BrowserCommandController's logic uniformly for bookmark command enable/disable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: . Created 6 years 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 | « chrome/browser/ui/browser_command_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 6b8cb1143226d334a1ec0e5a4f5a9e6b2a03481a..f331c0b40caff9cfa9ff83fcb86b74e28c7fb242 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -340,6 +340,11 @@ void BrowserCommandController::LoadingStateChanged(bool is_loading,
UpdateReloadStopState(is_loading, force);
}
+void BrowserCommandController::ExtensionStateChanged() {
+ // Extensions may disable the bookmark editing commands.
+ UpdateCommandsForBookmarkEditing();
+}
+
////////////////////////////////////////////////////////////////////////////////
// BrowserCommandController, CommandUpdaterDelegate implementation:
« no previous file with comments | « chrome/browser/ui/browser_command_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698