| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
|
| index a473c88541a517d8474180e936b0b5edb9fc7cfe..3a51ca8c13eba1756406cd3e16420f16ef5c5346 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h
|
| @@ -13,6 +13,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/prefs/public/pref_change_registrar.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_observer.h"
|
|
|
| class Browser;
|
| @@ -20,7 +21,8 @@ class Browser;
|
|
|
| class BookmarkBarBridge : public BookmarkModelObserver {
|
| public:
|
| - BookmarkBarBridge(BookmarkBarController* controller,
|
| + BookmarkBarBridge(Browser* browser,
|
| + BookmarkBarController* controller,
|
| BookmarkModel* model);
|
| virtual ~BookmarkBarBridge();
|
|
|
| @@ -53,6 +55,12 @@ class BookmarkBarBridge : public BookmarkModelObserver {
|
| BookmarkModel* model_; // weak; it is owned by a Profile.
|
| bool batch_mode_;
|
|
|
| + // Needed to react to kShowAppsShortcutInBookmarkBar changes.
|
| + PrefChangeRegistrar profile_pref_registrar_;
|
| +
|
| + // Updates the visibility of the apps shortcut based on the pref value.
|
| + void OnAppsPageShortcutVisibilityChanged();
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BookmarkBarBridge);
|
| };
|
|
|
|
|