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

Unified Diff: google_apis/gaia/gaia_urls.cc

Issue 11367014: Make OAuthUserInfoUrl configurable. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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_switches.cc ('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 a7266d7e7dc4041821f7b7cdede64bd9d354180a..8ececeb55ee004bc4143de260f95a1326ca67ec8 100644
--- a/google_apis/gaia/gaia_urls.cc
+++ b/google_apis/gaia/gaia_urls.cc
@@ -38,6 +38,9 @@ const char kOAuth2IssueTokenUrl[] =
"https://www.googleapis.com/oauth2/v2/IssueToken";
const char kOAuth1LoginScope[] =
"https://www.google.com/accounts/OAuthLogin";
+const char kOAuthUserInfoUrl[] =
+ "https://www.googleapis.com/oauth2/v1/userinfo";
+
void GetSwitchValueWithDefault(const char* switch_value,
const char* default_value,
@@ -96,7 +99,6 @@ GaiaUrls::GaiaUrls() {
// TODO(joaodasilva): these aren't configurable for now, but are managed here
// so that users of Gaia URLs don't have to use static constants.
// http://crbug.com/97126
- oauth_user_info_url_ = "https://www.googleapis.com/oauth2/v1/userinfo";
oauth_wrap_bridge_user_info_scope_ =
"https://www.googleapis.com/auth/userinfo.email";
client_oauth_url_ = "https://accounts.google.com/ClientOAuth";
@@ -115,6 +117,9 @@ GaiaUrls::GaiaUrls() {
GetSwitchValueWithDefault(switches::kOAuth2IssueTokenUrl,
kOAuth2IssueTokenUrl,
&oauth2_issue_token_url_);
+ GetSwitchValueWithDefault(switches::kOAuthUserInfoUrl,
+ kOAuthUserInfoUrl,
+ &oauth_user_info_url_);
gaia_login_form_realm_ = "https://accounts.google.com/";
}
« no previous file with comments | « google_apis/gaia/gaia_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698