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

Unified Diff: chromeos/login/auth/auth_status_consumer.h

Issue 1107873002: Test BlockingLoginTestInstance with enabled webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments resolved Created 5 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
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();

Powered by Google App Engine
This is Rietveld 408576698