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

Unified Diff: chrome/browser/command_updater.h

Issue 765043002: Bookmark pop-up doesn't open if Ctrl+D is set as keyboard shortcut for added extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. 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 | « no previous file | chrome/browser/command_updater.cc » ('j') | chrome/browser/ui/browser_commands.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/command_updater.h
diff --git a/chrome/browser/command_updater.h b/chrome/browser/command_updater.h
index a297a497faca07f8e8aa376469f418030a3bfa03..d0b19f70df63ae4db0141d6d891706f26c40ab1b 100644
--- a/chrome/browser/command_updater.h
+++ b/chrome/browser/command_updater.h
@@ -62,6 +62,14 @@ class CommandUpdater {
// state has not changed.
void UpdateCommandEnabled(int id, bool state);
+ // Set status for bookmark icon selection.
+ void set_bookmark_icon_selected(bool selection) {
+ bookmark_icon_selection_ = selection;
+ }
+
+ // Returns the status of bookmark icon selection.
+ bool get_bookmark_icon_selected() { return bookmark_icon_selection_; }
+
private:
// A piece of data about a command - whether or not it is enabled, and a list
// of objects that observe the enabled state of this command.
@@ -78,6 +86,9 @@ class CommandUpdater {
typedef base::hash_map<int, Command*> CommandMap;
CommandMap commands_;
+ // Keep status of bookmark icon selection.
+ bool bookmark_icon_selection_;
+
DISALLOW_COPY_AND_ASSIGN(CommandUpdater);
};
« no previous file with comments | « no previous file | chrome/browser/command_updater.cc » ('j') | chrome/browser/ui/browser_commands.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698