| Index: chromeos/login/auth/auth_status_consumer.h
|
| diff --git a/chromeos/login/auth/auth_status_consumer.h b/chromeos/login/auth/auth_status_consumer.h
|
| index e7e3bda56c8e25e6f9ecea89bce8eb603d9a9b8b..28f0e4e53b6b0d6252511be4e3dad3fb42b661f5 100644
|
| --- a/chromeos/login/auth/auth_status_consumer.h
|
| +++ b/chromeos/login/auth/auth_status_consumer.h
|
| @@ -30,14 +30,14 @@ class CHROMEOS_EXPORT AuthFailure {
|
| NETWORK_AUTH_FAILED, // Could not authenticate against Google
|
| OWNER_REQUIRED, // Only the device owner can log-in.
|
| WHITELIST_CHECK_FAILED, // Login attempt blocked by whitelist. This value
|
| - // is
|
| - // synthesized by the ExistingUserController and
|
| + // is synthesized by the ExistingUserController and
|
| // passed to the login_status_consumer_ in tests
|
| // only. It is never generated or seen by any of the
|
| // other authenticator classes.
|
| - TPM_ERROR, // Critical TPM error encountered.
|
| - USERNAME_HASH_FAILED, // Could not get username hash.
|
| - NUM_FAILURE_REASONS, // This has to be the last item.
|
| + TPM_ERROR, // Critical TPM error encountered.
|
| + USERNAME_HASH_FAILED, // Could not get username hash.
|
| + FAILED_TO_INITIALIZE_OAUTH2_TOKEN, // Could not get OAuth2 token.
|
| + NUM_FAILURE_REASONS, // This has to be the last item.
|
| };
|
|
|
| explicit AuthFailure(FailureReason reason)
|
| @@ -85,6 +85,8 @@ class CHROMEOS_EXPORT AuthFailure {
|
| return "Login is restricted to the owner's account only.";
|
| case WHITELIST_CHECK_FAILED:
|
| return "Login attempt blocked by whitelist.";
|
| + case FAILED_TO_INITIALIZE_OAUTH2_TOKEN:
|
| + return "OAuth2 token fetch failed.";
|
| default:
|
| NOTREACHED();
|
| return std::string();
|
|
|