summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 16:47:59 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 16:47:59 +0000
commit6f2b3643bbe1a2cd290fc2e7d064837ec3c742d3 (patch)
tree5bdde1f8f3b1becb9b04c94ae13dde79b1ee8c8a /chrome/common
parent7856f82d98587907c2005ecc245b57a3c58c56c7 (diff)
downloadchromium_src-6f2b3643bbe1a2cd290fc2e7d064837ec3c742d3.zip
chromium_src-6f2b3643bbe1a2cd290fc2e7d064837ec3c742d3.tar.gz
chromium_src-6f2b3643bbe1a2cd290fc2e7d064837ec3c742d3.tar.bz2
Fix problems with incorrect passwords and error states due to HTML and .h file mismatch on error codes.
BUG=53151 TEST=invalid password and captcha state in sync login Review URL: http://codereview.chromium.org/3429024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/net/gaia/google_service_auth_error.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/chrome/common/net/gaia/google_service_auth_error.h b/chrome/common/net/gaia/google_service_auth_error.h
index 966ef64..fa6f76b 100644
--- a/chrome/common/net/gaia/google_service_auth_error.h
+++ b/chrome/common/net/gaia/google_service_auth_error.h
@@ -30,43 +30,47 @@
class GoogleServiceAuthError {
public:
+ //
+ // These enumerations are referenced by integer value in HTML login code.
+ // Do not change the numeric values.
+ //
enum State {
// The user is authenticated.
NONE = 0,
- // The password is valid but we need two factor to get a token.
- TWO_FACTOR,
-
// The credentials supplied to GAIA were either invalid, or the locally
// cached credentials have expired.
- INVALID_GAIA_CREDENTIALS,
+ INVALID_GAIA_CREDENTIALS = 1,
// The GAIA user is not authorized to use the service.
- USER_NOT_SIGNED_UP,
+ USER_NOT_SIGNED_UP = 2,
// Could not connect to server to verify credentials. This could be in
// response to either failure to connect to GAIA or failure to connect to
// the service needing GAIA tokens during authentication.
- CONNECTION_FAILED,
-
- // The requestor of the authentication step cancelled the request
- // prior to completion.
- REQUEST_CANCELED,
+ CONNECTION_FAILED = 3,
// The user needs to satisfy a CAPTCHA challenge to unlock their account.
// If no other information is available, this can be resolved by visiting
// https://www.google.com/accounts/DisplayUnlockCaptcha. Otherwise,
// captcha() will provide details about the associated challenge.
- CAPTCHA_REQUIRED,
+ CAPTCHA_REQUIRED = 4,
// The user account has been deleted.
- ACCOUNT_DELETED,
+ ACCOUNT_DELETED = 5,
// The user account has been disabled.
- ACCOUNT_DISABLED,
+ ACCOUNT_DISABLED = 6,
// The service is not available; try again later.
- SERVICE_UNAVAILABLE,
+ SERVICE_UNAVAILABLE = 7,
+
+ // The password is valid but we need two factor to get a token.
+ TWO_FACTOR = 8,
+
+ // The requestor of the authentication step cancelled the request
+ // prior to completion.
+ REQUEST_CANCELED = 9,
};
// Additional data for CAPTCHA_REQUIRED errors.