Index: chrome/browser/ui/browser_command_controller.h |
=================================================================== |
--- chrome/browser/ui/browser_command_controller.h (revision 170518) |
+++ chrome/browser/ui/browser_command_controller.h (working copy) |
@@ -6,6 +6,7 @@ |
#define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ |
#include "base/prefs/public/pref_change_registrar.h" |
+#include "base/prefs/public/pref_observer.h" |
#include "chrome/browser/api/sync/profile_sync_service_observer.h" |
#include "chrome/browser/command_updater.h" |
#include "chrome/browser/sessions/tab_restore_service_observer.h" |
@@ -27,6 +28,7 @@ |
class BrowserCommandController : public CommandUpdater::CommandUpdaterDelegate, |
public content::NotificationObserver, |
+ public PrefObserver, |
public TabStripModelObserver, |
public TabRestoreServiceObserver, |
public ProfileSyncServiceObserver { |
@@ -86,6 +88,10 @@ |
const content::NotificationSource& source, |
const content::NotificationDetails& details) OVERRIDE; |
+ // Overridden from PrefObserver: |
+ virtual void OnPreferenceChanged(PrefServiceBase* service, |
+ const std::string& pref_name) OVERRIDE; |
+ |
// Overridden from TabStripModelObserver: |
virtual void TabInsertedAt(content::WebContents* contents, |
int index, |
@@ -133,10 +139,6 @@ |
// Updates commands that affect the bookmark bar. |
void UpdateCommandsForBookmarkBar(); |
- // Updates commands that affect file selection dialogs in aggregate, |
- // namely the save-page-as state and the open-file state. |
- void UpdateCommandsForFileSelectionDialogs(); |
- |
// Update commands whose state depends on the type of fullscreen mode the |
// window is in. |
void UpdateCommandsForFullscreenMode(FullScreenMode fullscreen_mode); |