Index: chrome/browser/ui/browser_command_controller.h |
diff --git a/chrome/browser/ui/browser_command_controller.h b/chrome/browser/ui/browser_command_controller.h |
index 31bfe7bf47ad17a1d714a3d971bb85043ff6ae1c..da7c45086b333d061b821ef35910ce6e1315b874 100644 |
--- a/chrome/browser/ui/browser_command_controller.h |
+++ b/chrome/browser/ui/browser_command_controller.h |
@@ -66,6 +66,18 @@ class BrowserCommandController : public CommandUpdaterDelegate, |
void PrintingStateChanged(); |
void LoadingStateChanged(bool is_loading, bool force); |
+ // Shared state updating: these functions are static and public to share with |
+ // outside code. |
+ |
+ // Updates the open-file state. |
+ static void UpdateOpenFileState(CommandUpdater* command_updater); |
+ |
+ // Update commands whose state depends on incognito mode availability and that |
+ // only depend on the profile. |
+ static void UpdateSharedCommandsForIncognitoAvailability( |
+ CommandUpdater* command_updater, |
+ Profile* profile); |
+ |
private: |
enum FullScreenMode { |
// Not in fullscreen mode. |
@@ -163,9 +175,6 @@ class BrowserCommandController : public CommandUpdaterDelegate, |
// Updates the save-page-as command state. |
void UpdateSaveAsState(); |
- // Updates the open-file state (Mac Only). |
- void UpdateOpenFileState(); |
- |
// Ask the Reload/Stop button to change its icon, and update the Stop command |
// state. |is_loading| is true if the current WebContents is loading. |
// |force| is true if the button should change its icon immediately. |