Chromium Code Reviews| Index: chrome/browser/command_updater.h |
| diff --git a/chrome/browser/command_updater.h b/chrome/browser/command_updater.h |
| index a297a497faca07f8e8aa376469f418030a3bfa03..f7c80d0979c91a687318a760c4fc5d4ba6593efd 100644 |
| --- a/chrome/browser/command_updater.h |
| +++ b/chrome/browser/command_updater.h |
| @@ -62,6 +62,12 @@ class CommandUpdater { |
| // state has not changed. |
| void UpdateCommandEnabled(int id, bool state); |
| + void set_bookmark_icon_selected(bool selection) { |
|
Avi (use Gerrit)
2014/11/28 14:56:07
You need to have some comments explaining the mean
|
| + bookmark_icon_selection_ = 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 +84,8 @@ class CommandUpdater { |
| typedef base::hash_map<int, Command*> CommandMap; |
| CommandMap commands_; |
| + bool bookmark_icon_selection_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(CommandUpdater); |
| }; |