Commit 8740e96c authored by Tien Mai's avatar Tien Mai Committed by Commit Bot

[GCPW] Use new Gaia endpoint specific for GCPW when running GLS

Bug: 942539
Change-Id: I3b7226c5193a47664683b630300ac917df81d07f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1525989Reviewed-by: default avatarRoger Tawa <rogerta@chromium.org>
Commit-Queue: Roger Tawa <rogerta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#644816}
parent 39b6d264
......@@ -665,27 +665,21 @@ HRESULT CGaiaCredentialBase::GetBaseGlsCommandline(
command_line->AppendSwitch(kGcpwSigninSwitch);
// Temporary endpoint while waiting for the real GCPW endpoint to be
// finished.
GURL endpoint_url = GaiaUrls::GetInstance()->embedded_signin_url();
std::string endpoint_path = endpoint_url.path().substr(1);
// Registry specified endpoint.
wchar_t endpoint_url_setting[256];
ULONG endpoint_url_length = base::size(endpoint_url_setting);
if (SUCCEEDED(GetGlobalFlag(L"ep_url", endpoint_url_setting,
&endpoint_url_length)) &&
endpoint_url_setting[0]) {
endpoint_url = GURL(endpoint_url_setting);
GURL endpoint_url(endpoint_url_setting);
if (endpoint_url.is_valid()) {
command_line->AppendSwitchASCII(switches::kGaiaUrl,
endpoint_url.GetWithEmptyPath().spec());
endpoint_path = endpoint_url.path().substr(1);
command_line->AppendSwitchASCII(kGcpwEndpointPathSwitch,
endpoint_url.path().substr(1));
}
}
command_line->AppendSwitchASCII(kGcpwEndpointPathSwitch, endpoint_path);
// Get the language selected by the LanguageSelector and pass it onto Chrome.
// The language will depend on if it is currently a SYSTEM logon (initial
// logon) or a lock screen logon (from a user). If the user who locked the
......
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