Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| index 5a5b4beb44fcf81c37b60163c8c5928d53fe6f0d..c26a12b3f15e771a4ae692ddd2bbfaf358e82ad4 100644 |
| --- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| +++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| @@ -55,6 +55,8 @@ const char kAuthIframeParentName[] = "signin-frame"; |
| const char kAuthIframeParentOrigin[] = |
| "chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/"; |
| +// TODO(rsorokin): Get rid of this url before the release. |
|
Dmitry Polukhin
2015/02/26 12:54:02
Please file an issue, make it release beta blocker
|
| +const char kStagingGaiaUrl[] = "https://accounts.sandbox.google.com/"; |
| // TODO(rsorokin): Move this to the proper file. |
| const char kMinuteMaidPath[] = "ChromeOsEmbeddedSetup"; |
| @@ -243,11 +245,19 @@ void GaiaScreenHandler::LoadGaia(const GaiaContext& context) { |
| } |
| } |
| - const GURL gaia_url = |
| - command_line->HasSwitch(::switches::kGaiaUrl) |
| - ? GURL(command_line->GetSwitchValueASCII(::switches::kGaiaUrl)) |
| - : GaiaUrls::GetInstance()->gaia_url(); |
| - params.SetString("gaiaUrl", gaia_url.spec()); |
| + if (StartupUtils::IsWebviewSigninEnabled()) { |
| + // We can't use switch --gaia-url in this case cause we need get |
| + // auth_code from staging gaia and make all the other auths against prod |
| + // gaia so user could use all the google services. |
| + const GURL gaia_url = GURL(kStagingGaiaUrl); |
| + params.SetString("gaiaUrl", gaia_url.spec()); |
| + } else { |
| + const GURL gaia_url = |
| + command_line->HasSwitch(::switches::kGaiaUrl) |
| + ? GURL(command_line->GetSwitchValueASCII(::switches::kGaiaUrl)) |
| + : GaiaUrls::GetInstance()->gaia_url(); |
| + params.SetString("gaiaUrl", gaia_url.spec()); |
| + } |
| if (command_line->HasSwitch(switches::kGaiaEndpointChromeOS)) { |
| params.SetString("gaiaEndpoint", command_line->GetSwitchValueASCII( |