Commit 25e7c1a3 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

Chromad: Show proper offline login when offline.

Shows offline Gaia to sign in as an existing user when there is no
network for Active Directory devices.

BUG=chromium:864987
TEST=manual

Change-Id: I0f80915788c96b6fd88e766dbe6526802ffe98e5
Reviewed-on: https://chromium-review.googlesource.com/1141867
Commit-Queue: Alexander Alekseev <alemate@chromium.org>
Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576196}
parent 164631f6
......@@ -110,12 +110,12 @@ policy::DeviceMode GetDeviceMode() {
}
GaiaScreenMode GetGaiaScreenMode(const std::string& email, bool use_offline) {
if (GetDeviceMode() == policy::DEVICE_MODE_ENTERPRISE_AD)
return GAIA_SCREEN_MODE_AD;
if (use_offline)
return GAIA_SCREEN_MODE_OFFLINE;
if (GetDeviceMode() == policy::DEVICE_MODE_ENTERPRISE_AD)
return GAIA_SCREEN_MODE_AD;
int authentication_behavior = 0;
CrosSettings::Get()->GetInteger(kLoginAuthenticationBehavior,
&authentication_behavior);
......
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