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..9b9ef1c5c574e4ab0e7b8da706c9cf99e393a3f8 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h |
@@ -13,14 +13,16 @@ |
#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; |
+class Profile; |
@class BookmarkBarController; |
class BookmarkBarBridge : public BookmarkModelObserver { |
public: |
- BookmarkBarBridge(BookmarkBarController* controller, |
+ BookmarkBarBridge(Profile* profile, |
+ 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); |
}; |