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

Unified Diff: google_apis/gaia/google_service_auth_error.cc

Issue 2314913003: Deprecate HOSTED_NOT_ALLOWED auth error (Closed)
Patch Set: Replace NUM_DEPRECATED_STATES with IsDeprecated() Created 4 years, 3 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
« no previous file with comments | « google_apis/gaia/google_service_auth_error.h ('k') | ios/chrome/browser/sync/sync_setup_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/google_service_auth_error.cc
diff --git a/google_apis/gaia/google_service_auth_error.cc b/google_apis/gaia/google_service_auth_error.cc
index 34c94c1073a67310491e6c46e78728e1f464a8dc..909cf163a2df7399d186d7686b4566cf2af31649 100644
--- a/google_apis/gaia/google_service_auth_error.cc
+++ b/google_apis/gaia/google_service_auth_error.cc
@@ -126,6 +126,11 @@ GoogleServiceAuthError GoogleServiceAuthError::AuthErrorNone() {
return GoogleServiceAuthError(NONE);
}
+// static
+bool GoogleServiceAuthError::IsDeprecated(State state) {
+ return state == HOSTED_NOT_ALLOWED_DEPRECATED;
+}
+
GoogleServiceAuthError::State GoogleServiceAuthError::state() const {
return state_;
}
@@ -176,7 +181,6 @@ base::DictionaryValue* GoogleServiceAuthError::ToValue() const {
STATE_CASE(SERVICE_UNAVAILABLE);
STATE_CASE(TWO_FACTOR);
STATE_CASE(REQUEST_CANCELED);
- STATE_CASE(HOSTED_NOT_ALLOWED);
STATE_CASE(UNEXPECTED_SERVICE_RESPONSE);
STATE_CASE(SERVICE_ERROR);
STATE_CASE(WEB_LOGIN_REQUIRED);
@@ -235,8 +239,6 @@ std::string GoogleServiceAuthError::ToString() const {
second_factor_.token.c_str());
case REQUEST_CANCELED:
return "Request canceled.";
- case HOSTED_NOT_ALLOWED:
- return "Google account required.";
case UNEXPECTED_SERVICE_RESPONSE:
return base::StringPrintf("Unexpected service response (%s)",
error_message_.c_str());
« no previous file with comments | « google_apis/gaia/google_service_auth_error.h ('k') | ios/chrome/browser/sync/sync_setup_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698