| Index: chrome/browser/ui/gtk/browser_toolbar_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/browser_toolbar_gtk.h b/chrome/browser/ui/gtk/browser_toolbar_gtk.h
|
| index e8e66172224b03742d7b86c7ce6e80d7abd88e0b..a60c3b544519f98634470bf24a49b12a23906bab 100644
|
| --- a/chrome/browser/ui/gtk/browser_toolbar_gtk.h
|
| +++ b/chrome/browser/ui/gtk/browser_toolbar_gtk.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/prefs/public/pref_observer.h"
|
| #include "chrome/browser/api/prefs/pref_member.h"
|
| #include "chrome/browser/command_observer.h"
|
| #include "chrome/browser/ui/gtk/custom_button.h"
|
| @@ -43,7 +44,8 @@ class WebContents;
|
| class BrowserToolbarGtk : public CommandObserver,
|
| public ui::AcceleratorProvider,
|
| public MenuGtk::Delegate,
|
| - public content::NotificationObserver {
|
| + public content::NotificationObserver,
|
| + public PrefObserver {
|
| public:
|
| BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window);
|
| virtual ~BrowserToolbarGtk();
|
| @@ -104,6 +106,10 @@ class BrowserToolbarGtk : public CommandObserver,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) OVERRIDE;
|
|
|
| + // PrefObserver implementation.
|
| + virtual void OnPreferenceChanged(PrefServiceBase* service,
|
| + const std::string& pref_name) OVERRIDE;
|
| +
|
| // Whether the wrench/hotdogs menu is currently visible to the user.
|
| bool IsWrenchMenuShowing() const;
|
|
|
| @@ -144,7 +150,7 @@ class BrowserToolbarGtk : public CommandObserver,
|
| GdkEventExpose*);
|
|
|
| // Updates preference-dependent state.
|
| - void NotifyPrefChanged(const std::string* pref);
|
| + void NotifyPrefChanged(const std::string& pref);
|
|
|
| static void SetSyncMenuLabel(GtkWidget* widget, gpointer userdata);
|
|
|
|
|