Commit 21b03c97 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

cros: Save force online signin flag in case of signin error

We need to save the flag in the local state because
TokenHandleUtil::CheckToken might fail on the login screen due to lack of
network connectivity.

Bug: 998410, b/143986150
Change-Id: Iff38194d8fc714fcf486424c721f919992ae79f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938949Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719939}
parent 483c83e3
......@@ -143,6 +143,13 @@ void SigninErrorNotifier::HandleDeviceAccountError() {
if (service->signout_required_after_supervision_enabled())
return;
// We need to save the flag in the local state because
// TokenHandleUtil::CheckToken might fail on the login screen due to lack of
// network connectivity.
user_manager::UserManager::Get()->SaveForceOnlineSignin(
multi_user_util::GetAccountIdFromProfile(profile_),
true /* force_online_signin */);
// Add an accept button to sign the user out.
message_center::RichNotificationData data;
data.buttons.push_back(message_center::ButtonInfo(
......
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