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

Unified Diff: chrome/common/net/gaia/gaia_auth_fetcher.h

Issue 5309007: [ChromeOS] Make GaiaAutheFetcher parsing logic default to service_unavailable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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: chrome/common/net/gaia/gaia_auth_fetcher.h
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher.h b/chrome/common/net/gaia/gaia_auth_fetcher.h
index fd644a397784fdaaf77a70d2c22f092d0da05219..e0fe76efac51c3f4aedafd284370a6e81abaf3ac 100644
--- a/chrome/common/net/gaia/gaia_auth_fetcher.h
+++ b/chrome/common/net/gaia/gaia_auth_fetcher.h
@@ -105,6 +105,7 @@ class GaiaAuthFetcher : public URLFetcher::Delegate {
// Constants for parsing ClientLogin errors.
static const char kAccountDeletedError[];
static const char kAccountDisabledError[];
+ static const char kBadAuthenticationError[];
static const char kCaptchaError[];
static const char kServiceUnavailableError[];
static const char kErrorParam[];
@@ -192,6 +193,8 @@ class GaiaAuthFetcher : public URLFetcher::Delegate {
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, CaptchaParse);
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, AccountDeletedError);
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, AccountDisabledError);
+ FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, BadAuthenticationError);
+ FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, IncomprehensibleError);
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, ServiceUnavailableError);
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, CheckNormalErrorCode);
FRIEND_TEST_ALL_PREFIXES(GaiaAuthFetcherTest, CheckTwoFactorResponse);
« no previous file with comments | « no previous file | chrome/common/net/gaia/gaia_auth_fetcher.cc » ('j') | chrome/common/net/gaia/gaia_auth_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698