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

Unified Diff: chrome/browser/signin/signin_tracker.h

Issue 10020028: Merge 130722 - On ChromeOS, the user is always signed in and we should not (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.js ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_tracker.h
===================================================================
--- chrome/browser/signin/signin_tracker.h (revision 131686)
+++ chrome/browser/signin/signin_tracker.h (working copy)
@@ -63,10 +63,18 @@
virtual void SigninSuccess() = 0;
};
+ // The various states the login process can be in.
+ enum LoginState {
+ WAITING_FOR_GAIA_VALIDATION,
+ SERVICES_INITIALIZING,
+ SIGNIN_COMPLETE
+ };
+
// Creates a SigninTracker that tracks the signin status on the passed
// |profile|, and notifies the |observer| on status changes. |observer| must
// be non-null and must outlive the SigninTracker.
SigninTracker(Profile* profile, Observer* observer);
+ SigninTracker(Profile* profile, Observer* observer, LoginState state);
virtual ~SigninTracker();
// content::NotificationObserver implementation.
@@ -85,12 +93,8 @@
static bool AreServiceTokensLoaded(Profile* profile);
private:
- // The various states the login process can be in.
- enum LoginState {
- WAITING_FOR_GAIA_VALIDATION,
- SERVICES_INITIALIZING,
- SIGNIN_COMPLETE
- };
+ // Initializes this by adding notifications and observers.
+ void Initialize();
// Invoked when one of the services potentially changed its signin status so
// we can check to see whether we need to notify our observer.
@@ -115,4 +119,3 @@
};
#endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
-
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.js ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698