OOBE shelf: Only update session state if showing account picker.
During OOBE enrollment flow we fetch the list of policies and this may contain users such as a public session user. 1.If the list of users fetched is not empty we show the account picker screen. 2 If the list of users is empty we show the GAIA login screen. We should only update session state to LOGIN_PRIMARY if we show the account picker screen. Session state should remain OOBE if we show the GAIA login screen. Setting the value of session state controls the colors of the buttons and icons in the shelf and setting it incorrectly causes visual bugs. Bug: 937367 Change-Id: Iaa8f5913a36936f0959da8a517ddfb21ea5d5971 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1500632 Commit-Queue: Tony De Luna <tonydeluna@chromium.org> Reviewed-by:Alexander Alekseev <alemate@chromium.org> Cr-Commit-Position: refs/heads/master@{#638259}
Showing
Please register or sign in to comment