| Index: chrome/browser/chromeos/login/login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
|
| index 2684220bf2d20ebbf7d0d029602022587f582a49..80c76fa43b4ffec72bc79d40a387acc68f44f043 100644
|
| --- a/chrome/browser/chromeos/login/login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/login_utils.cc
|
| @@ -164,6 +164,10 @@ bool CanPerformEarlyRestart() {
|
| if (controller->auth_mode() != LoginPerformer::AUTH_MODE_INTERNAL)
|
| return false;
|
|
|
| + // No early restart if Easy unlock key needs to be updated.
|
| + if (UserSessionManager::GetInstance()->NeedsToUpdateEasyUnlockKeys())
|
| + return false;
|
| +
|
| return true;
|
| }
|
|
|
| @@ -453,6 +457,14 @@ void LoginUtilsImpl::OnRlzInitialized() {
|
| #endif
|
|
|
| void LoginUtilsImpl::AttemptRestart(Profile* profile) {
|
| + if (UserSessionManager::GetInstance()
|
| + ->CheckEasyUnlockKeyOps(
|
| + base::Bind(&LoginUtilsImpl::AttemptRestart,
|
| + base::Unretained(this),
|
| + profile))) {
|
| + return;
|
| + }
|
| +
|
| if (UserSessionManager::GetInstance()->GetSigninSessionRestoreStrategy() !=
|
| OAuth2LoginManager::RESTORE_FROM_COOKIE_JAR) {
|
| chrome::AttemptRestart();
|
|
|