Chromium Code Reviews
DescriptionPrevent login while cros settings are untrusted
This CL is a prerequisite for device disabling:
If a device has been disabled by its owner, a corresponding bit will be
set in cros settings. If that bit is set, the device should show a
warning screen and prevent any sessions from being started. We could
guarantee this by waiting for cros settings to become trusted and checking
the bit before showing the login screen. However, that would increase
the time-to-login-screen for all users. This CL takes a different
approach. It allows the login screen to show but ensures that any login
attempts made will wait until the cros settings have become trusted
(checking for the device disabled bit will be added in a follow-up CL).
To ensure that no login path bypasses this check, the various Login*()
methods are made private, forcing everyone to go through the central,
publich Login() method.
BUG=425574
TEST=Added browser tests for all account types
Committed: https://crrev.com/a92230048d293d6d5c8f49b940e91bd6bec3f2a5
Cr-Commit-Position: refs/heads/master@{#303073}
Patch Set 1 #Patch Set 2 : Fix multi-login. Fix style guide violation: no else after return. #
Messages
Total messages: 17 (4 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||