ALL_PROFILES_NOT_SIGNED_IN,
MIXED_SIGNIN_STATUS,
UNKNOWN_SIGNIN_STATUS,
+ ERROR_GETTING_SIGNIN_STATUS,
SIGNIN_STATUS_MAX,
};
virtual void SigninManagerShutdown(SigninManagerBase* manager) OVERRIDE;
// SigninManagerBase::Observer:
- virtual void GoogleSigninSucceeded(const std::string& username,
+ virtual void GoogleSigninSucceeded(const std::string& account_id,
+ const std::string& username,
const std::string& password) OVERRIDE;
- virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
+ virtual void GoogleSignedOut(const std::string& account_id,
+ const std::string& username) OVERRIDE;
// Obtain sign-in status and add observers.
void Initialize();
// Compute current sign-in status of all opened profiles.
void ComputeCurrentSigninStatus();
+ // Sets the value of |signin_status_|. It ensures that |signin_status_| will
+ // not be changed if its value is already ERROR_GETTING_SIGNIN_STATUS.
+ void SetSigninStatus(ProfilesSigninStatus new_status);
+
// Get the current recorded sign-in status. For testing purpose only.
ProfilesSigninStatus GetSigninStatusForTesting();