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

Unified Diff: chrome/common/net/gaia/gaia_urls.cc

Issue 10411025: Reverted 136345 - Ran into GAIA dosserver issues in prod for http://accounts.google.com. We are goi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « chrome/common/net/gaia/gaia_urls.h ('k') | chrome/common/net/gaia/google_service_auth_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/gaia_urls.cc
diff --git a/chrome/common/net/gaia/gaia_urls.cc b/chrome/common/net/gaia/gaia_urls.cc
index a4217d11fae047d0d5ac1c70a78fad9aabdc67b0..5888421b49c3e114823694739bc9b35b9b76f447 100644
--- a/chrome/common/net/gaia/gaia_urls.cc
+++ b/chrome/common/net/gaia/gaia_urls.cc
@@ -9,25 +9,20 @@
namespace {
-// Gaia service constants
-const char kDefaultGaiaBaseUrl[] = "accounts.google.com";
-
-const char kCaptchaUrlPrefixSuffix[] = "/";
-const char kClientLoginUrlSuffix[] = "/ClientLogin";
-const char kServiceLoginUrlSuffix[] = "/ServiceLogin";
-const char kIssueAuthTokenUrlSuffix[] = "/IssueAuthToken";
-const char kGetUserInfoUrlSuffix[] = "/GetUserInfo";
-const char kTokenAuthUrlSuffix[] = "/TokenAuth";
-const char kMergeSessionUrlSuffix[] = "/MergeSession";
-
-const char kOAuthGetAccessTokenUrlSuffix[] = "/OAuthGetAccessToken";
-const char kOAuthWrapBridgeUrlSuffix[] = "/OAuthWrapBridge";
-const char kOAuth1LoginUrlSuffix[] = "/OAuthLogin";
-const char kOAuthRevokeTokenUrlSuffix[] = "/AuthSubRevokeToken";
-
-// Federated login constants
-const char kDefaultFederatedLoginBaseUrl[] = "https://www.google.com/accounts";
-const char kGetOAuthTokenUrlSuffix[] = "/o8/GetOAuthToken";
+const char kDefaultGaiaBaseUrl[] = "www.google.com";
+
+const char kCaptchaUrlPrefixSuffix[] = "/accounts/";
+const char kClientLoginUrlSuffix[] = "/accounts/ClientLogin";
+const char kIssueAuthTokenUrlSuffix[] = "/accounts/IssueAuthToken";
+const char kGetUserInfoUrlSuffix[] = "/accounts/GetUserInfo";
+const char kTokenAuthUrlSuffix[] = "/accounts/TokenAuth";
+const char kMergeSessionUrlSuffix[] = "/accounts/MergeSession";
+
+const char kGetOAuthTokenUrlSuffix[] = "/accounts/o8/GetOAuthToken";
+const char kOAuthGetAccessTokenUrlSuffix[] = "/accounts/OAuthGetAccessToken";
+const char kOAuthWrapBridgeUrlSuffix[] = "/accounts/OAuthWrapBridge";
+const char kOAuth1LoginUrlSuffix[] = "/accounts/OAuthLogin";
+const char kOAuthRevokeTokenUrlSuffix[] = "/accounts/AuthSubRevokeToken";
// OAuth2 client id for Google Chrome which is registered as an
// installed application.
@@ -45,7 +40,6 @@ const char kOAuth2TokenUrl[] =
"https://accounts.google.com/o/oauth2/token";
const char kOAuth2IssueTokenUrl[] =
"https://www.googleapis.com/oauth2/v2/IssueToken";
-
} // namespacce
GaiaUrls* GaiaUrls::GetInstance() {
@@ -64,16 +58,12 @@ GaiaUrls::GaiaUrls() {
captcha_url_prefix_ = "http://" + host_base + kCaptchaUrlPrefixSuffix;
gaia_origin_url_ = "https://" + host_base;
client_login_url_ = gaia_origin_url_ + kClientLoginUrlSuffix;
- service_login_url_ = gaia_origin_url_ + kServiceLoginUrlSuffix;
issue_auth_token_url_ = gaia_origin_url_ + kIssueAuthTokenUrlSuffix;
get_user_info_url_ = gaia_origin_url_ + kGetUserInfoUrlSuffix;
token_auth_url_ = gaia_origin_url_ + kTokenAuthUrlSuffix;
merge_session_url_ = gaia_origin_url_ + kMergeSessionUrlSuffix;
- // Federated login is not part of Gaia and has its own endpoints.
- get_oauth_token_url_ = std::string(kDefaultFederatedLoginBaseUrl) +
- kGetOAuthTokenUrlSuffix;
-
+ get_oauth_token_url_ = gaia_origin_url_ + kGetOAuthTokenUrlSuffix;
oauth_get_access_token_url_ = gaia_origin_url_ +
kOAuthGetAccessTokenUrlSuffix;
oauth_wrap_bridge_url_ = gaia_origin_url_ + kOAuthWrapBridgeUrlSuffix;
@@ -114,10 +104,6 @@ const std::string& GaiaUrls::client_login_url() {
return client_login_url_;
}
-const std::string& GaiaUrls::service_login_url() {
- return service_login_url_;
-}
-
const std::string& GaiaUrls::issue_auth_token_url() {
return issue_auth_token_url_;
}
« no previous file with comments | « chrome/common/net/gaia/gaia_urls.h ('k') | chrome/common/net/gaia/google_service_auth_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698