| Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| index 473c8ffb6a6935a85e7cafbc3fc7be15f40f3516..c3067a60cdfaa77915ade104d2531c2222b61e5d 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
|
| @@ -894,6 +894,21 @@ void SigninScreenHandler::ReloadGaia(bool force_reload) {
|
| }
|
|
|
| void SigninScreenHandler::Initialize() {
|
| + // Preload PIN keyboard if any of the users can authenticate via PIN.
|
| + if (user_manager::UserManager::IsInitialized()) {
|
| + for (user_manager::User* user :
|
| + user_manager::UserManager::Get()->GetLoggedInUsers()) {
|
| +
|
| + chromeos::PinStorage* pin_storage =
|
| + chromeos::PinStorageFactory::GetForUser(user);
|
| + if (pin_storage && pin_storage->IsPinAuthenticationAvailable()) {
|
| + CallJS("cr.ui.Oobe.preloadPinKeyboard");
|
| + break;
|
| + }
|
| + }
|
| + }
|
| +
|
| + // |delegate_| is null when we are preloading the lock screen.
|
| if (delegate_ && show_on_init_) {
|
| show_on_init_ = false;
|
| ShowImpl();
|
|
|