Commit 54a734e8 authored by dpolukhin's avatar dpolukhin Committed by Commit bot

Don't use staging GAIA if --gaia-url was explicitly specified in command line

BUG=461854
TEST=manual

Review URL: https://codereview.chromium.org/971733002

Cr-Commit-Position: refs/heads/master@{#318693}
parent 9f40f359
......@@ -246,10 +246,12 @@ void GaiaScreenHandler::LoadGaia(const GaiaContext& context) {
}
}
if (StartupUtils::IsWebviewSigninEnabled()) {
if (!command_line->HasSwitch(::switches::kGaiaUrl) &&
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.
// TODO(dpolukhin): crbug.com/462204
const GURL gaia_url = GURL(kStagingGaiaUrl);
params.SetString("gaiaUrl", gaia_url.spec());
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment