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

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

Issue 10443024: Added chrome switch that lets tests override URL path, moved GAIA auth extension from CrOS (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
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..7051dacac0b0642233e285b765eb237d7c5d3438 100644
--- a/chrome/common/net/gaia/gaia_urls.cc
+++ b/chrome/common/net/gaia/gaia_urls.cc
@@ -63,6 +63,16 @@ GaiaUrls::GaiaUrls() {
captcha_url_prefix_ = "http://" + host_base + kCaptchaUrlPrefixSuffix;
gaia_origin_url_ = "https://" + host_base;
+ if (command_line->HasSwitch(switches::kGaiaUrlPath)) {
+ std::string path = command_line->GetSwitchValueASCII(switches::kGaiaUrlPath);
+ if (!path.empty()) {
+ if (path[0] != '/')
+ gaia_origin_url_.append("/");
+
+ gaia_origin_url_.append(path);
+ }
+ }
+
client_login_url_ = gaia_origin_url_ + kClientLoginUrlSuffix;
service_login_url_ = gaia_origin_url_ + kServiceLoginUrlSuffix;
issue_auth_token_url_ = gaia_origin_url_ + kIssueAuthTokenUrlSuffix;
« chrome/browser/resources/gaia_auth/success.js ('K') | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698