Chromium Code Reviews| Index: google_apis/gaia/google_service_auth_error.h |
| diff --git a/google_apis/gaia/google_service_auth_error.h b/google_apis/gaia/google_service_auth_error.h |
| index 9549ad7817459c4f47b55a8f44d0368c4d82a423..c6cbf8ed4b30423d9fd4ab2ae3cda351b7a91f47 100644 |
| --- a/google_apis/gaia/google_service_auth_error.h |
| +++ b/google_apis/gaia/google_service_auth_error.h |
| @@ -74,9 +74,9 @@ class GoogleServiceAuthError { |
| // prior to completion. |
| REQUEST_CANCELED = 9, |
| - // The user has provided a HOSTED account, when this service requires |
| - // a GOOGLE account. |
| - HOSTED_NOT_ALLOWED = 10, |
| + // HOSTED accounts are deprecated; left in enumeration to match |
| + // GoogleServiceAuthError enum in histograms.xml. |
| + HOSTED_NOT_ALLOWED_DEPRECATED = 10, |
| // Indicates the service responded to a request, but we cannot |
| // interpret the response. |
| @@ -93,6 +93,9 @@ class GoogleServiceAuthError { |
| NUM_STATES = 14, |
| }; |
| + // Number of deprecated states in above enum, used for list size checks. |
| + static const int NUM_DEPRECATED_STATES = 1; |
| + |
| // Additional data for CAPTCHA_REQUIRED errors. |
| struct Captcha { |
| Captcha(); |
| @@ -129,11 +132,11 @@ class GoogleServiceAuthError { |
| // Globally identifies the specific second-factor challenge. |
| std::string token; |
| - // Localised prompt text, eg Enter the verification code sent to your |
| - // phone number ending in XXX. |
| + // Localized prompt text, e.g. "Enter the verification code sent to your |
| + // phone number ending in XXX". |
| std::string prompt_text; |
| - // Localized text describing an alternate option, eg Get a verification |
| - // code in a text message. |
| + // Localized text describing an alternate option, e.g. "Get a verification |
| + // code in a text message". |
|
Greg Levin
2016/09/08 19:56:35
Fix typos, replace non-displaying Unicode open/clo
|
| std::string alternate_text; |
| // Character length for the challenge field. |
| int field_length; |