Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1956)

Unified Diff: chrome/browser/ui/browser_command_controller.h

Issue 1304393002: Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0e564c0b9acf95e4ad760c10e4997a4e030dcb02..05ec35a47e0daaa4934b7ac40648216e08c41a03 100644
--- a/chrome/browser/ui/browser_command_controller.h
+++ b/chrome/browser/ui/browser_command_controller.h
@@ -140,9 +140,15 @@ class BrowserCommandController : public CommandUpdaterDelegate,
// Updates the printing command state.
void UpdatePrintingState();
+ // Updates the SHOW_SYNC_SETUP menu entry.
+ void OnSigninAllowedPrefChange();
+
// Updates the save-page-as command state.
void UpdateSaveAsState();
+ // Updates the show-sync command state.
+ void UpdateShowSyncState(bool show_main_ui);
+
// 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.
@@ -179,6 +185,7 @@ class BrowserCommandController : public CommandUpdaterDelegate,
PrefChangeRegistrar profile_pref_registrar_;
PrefChangeRegistrar local_pref_registrar_;
+ BooleanPrefMember pref_signin_allowed_;
DISALLOW_COPY_AND_ASSIGN(BrowserCommandController);
};

Powered by Google App Engine
This is Rietveld 408576698