Commit 572c5f19 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

cros: Fix update user list when secondary screen is running

Bug: 1045311
Change-Id: I14518db877a9482bf3b5a37a34320c705e8b92fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020959Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735542}
parent 4e979a0d
...@@ -1300,7 +1300,12 @@ void ExistingUserController::DeviceSettingsChanged() { ...@@ -1300,7 +1300,12 @@ void ExistingUserController::DeviceSettingsChanged() {
if (!profile_prepared_ && GetLoginDisplay() && if (!profile_prepared_ && GetLoginDisplay() &&
!GetLoginDisplay()->is_signin_completed()) { !GetLoginDisplay()->is_signin_completed()) {
// Signed settings or user list changed. Notify views and update them. // Signed settings or user list changed. Notify views and update them.
UpdateLoginDisplay(user_manager::UserManager::Get()->GetUsers()); const user_manager::UserList& users =
UserAddingScreen::Get()->IsRunning()
? user_manager::UserManager::Get()->GetUsersAllowedForMultiProfile()
: user_manager::UserManager::Get()->GetUsers();
UpdateLoginDisplay(users);
ConfigureAutoLogin(); ConfigureAutoLogin();
} }
} }
......
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