| Index: chrome/browser/signin/signin_tracker.h
|
| diff --git a/chrome/browser/signin/signin_tracker.h b/chrome/browser/signin/signin_tracker.h
|
| index 7dd0abed735ef157e79a7df06f0afe3aa4bcb832..d4008ef4f9c75539a3307c578695f54b7ca6085c 100644
|
| --- a/chrome/browser/signin/signin_tracker.h
|
| +++ b/chrome/browser/signin/signin_tracker.h
|
| @@ -63,10 +63,18 @@ class SigninTracker : public ProfileSyncServiceObserver,
|
| 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 @@ class SigninTracker : public ProfileSyncServiceObserver,
|
| 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 @@ class SigninTracker : public ProfileSyncServiceObserver,
|
| };
|
|
|
| #endif // CHROME_BROWSER_SIGNIN_SIGNIN_TRACKER_H_
|
| -
|
|
|