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

Unified Diff: google_apis/gaia/gaia_urls.cc

Issue 2959523002: Revert of ChromeOS: Enable Gaia v2 API by default. (Closed)
Patch Set: Created 3 years, 6 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/gaia_urls.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_urls.cc
diff --git a/google_apis/gaia/gaia_urls.cc b/google_apis/gaia/gaia_urls.cc
index e314a10292551527f4290c2ff3fe8c9ae1bd192d..bff2ab39e25c6d7c9bac85768566efeca8868924 100644
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -20,8 +20,7 @@
// API calls from accounts.google.com
const char kClientLoginUrlSuffix[] = "ClientLogin";
const char kServiceLoginUrlSuffix[] = "ServiceLogin";
-const char kEmbeddedSetupChromeOsUrlSuffixV1[] = "embedded/setup/chromeos";
-const char kEmbeddedSetupChromeOsUrlSuffixV2[] = "embedded/setup/v2/chromeos";
+const char kEmbeddedSetupChromeOsUrlSuffix[] = "embedded/setup/chromeos";
const char kServiceLoginAuthUrlSuffix[] = "ServiceLoginAuth";
const char kServiceLogoutUrlSuffix[] = "Logout";
const char kIssueAuthTokenUrlSuffix[] = "IssueAuthToken";
@@ -98,10 +97,8 @@
// URLs from accounts.google.com.
client_login_url_ = gaia_url_.Resolve(kClientLoginUrlSuffix);
service_login_url_ = gaia_url_.Resolve(kServiceLoginUrlSuffix);
- embedded_setup_chromeos_url_v1_ =
- gaia_url_.Resolve(kEmbeddedSetupChromeOsUrlSuffixV1);
- embedded_setup_chromeos_url_v2_ =
- gaia_url_.Resolve(kEmbeddedSetupChromeOsUrlSuffixV2);
+ embedded_setup_chromeos_url_ =
+ gaia_url_.Resolve(kEmbeddedSetupChromeOsUrlSuffix);
service_login_auth_url_ = gaia_url_.Resolve(kServiceLoginAuthUrlSuffix);
service_logout_url_ = gaia_url_.Resolve(kServiceLogoutUrlSuffix);
issue_auth_token_url_ = gaia_url_.Resolve(kIssueAuthTokenUrlSuffix);
@@ -163,13 +160,8 @@
return service_login_url_;
}
-const GURL& GaiaUrls::embedded_setup_chromeos_url(unsigned version) const {
- DCHECK_GT(version, 0U);
- DCHECK_LE(version, 2U);
- if (version == 2U)
- return embedded_setup_chromeos_url_v2_;
-
- return embedded_setup_chromeos_url_v1_;
+const GURL& GaiaUrls::embedded_setup_chromeos_url() const {
+ return embedded_setup_chromeos_url_;
}
« no previous file with comments | « google_apis/gaia/gaia_urls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698