| 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 ad202a5c8a4bba857b7dc1cc2f72699c0e99ef90..e7e3bda56c8e25e6f9ecea89bce8eb603d9a9b8b 100644
|
| --- a/chromeos/login/auth/auth_status_consumer.h
|
| +++ b/chromeos/login/auth/auth_status_consumer.h
|
| @@ -29,14 +29,15 @@ class CHROMEOS_EXPORT AuthFailure {
|
| UNLOCK_FAILED,
|
| 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 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.
|
| - FAILED_TO_INITIALIZE_TOKEN, // Could not get OAuth2 Token,
|
| - NUM_FAILURE_REASONS, // This has to be the last item.
|
| + WHITELIST_CHECK_FAILED, // Login attempt blocked by whitelist. This value
|
| + // 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.
|
| };
|
|
|
| explicit AuthFailure(FailureReason reason)
|
| @@ -84,8 +85,6 @@ 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_TOKEN:
|
| - return "OAuth2 token fetch failed.";
|
| default:
|
| NOTREACHED();
|
| return std::string();
|
|
|