Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2826)

Unified Diff: chrome/browser/signin/easy_unlock_service_signin_chromeos.cc

Issue 741593002: If easy sign-in is set up, allow TPMTokenLoader to start before login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/tpm/tpm_token_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/easy_unlock_service_signin_chromeos.cc
diff --git a/chrome/browser/signin/easy_unlock_service_signin_chromeos.cc b/chrome/browser/signin/easy_unlock_service_signin_chromeos.cc
index 4d6f53c95e27f1d57a75371c0ae98e2df14fe7f1..d9c3dc98f9043dc3926c30890733f02009a917df 100644
--- a/chrome/browser/signin/easy_unlock_service_signin_chromeos.cc
+++ b/chrome/browser/signin/easy_unlock_service_signin_chromeos.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_metrics.h"
#include "chrome/browser/chromeos/login/session/user_session_manager.h"
#include "chromeos/login/auth/user_context.h"
+#include "chromeos/tpm/tpm_token_loader.h"
namespace {
@@ -318,6 +319,15 @@ void EasyUnlockServiceSignin::OnFocusedUserChanged(const std::string& user_id) {
}
LoadCurrentUserDataIfNeeded();
+
+ // Start loading TPM system token.
+ // The system token will be needed to sign a nonce using TPM private key
+ // during the sign-in protocol.
+ EasyUnlockScreenlockStateHandler::HardlockState hardlock_state;
+ if (GetPersistedHardlockState(&hardlock_state) &&
+ hardlock_state != EasyUnlockScreenlockStateHandler::NO_PAIRING) {
+ chromeos::TPMTokenLoader::Get()->EnsureStarted();
+ }
}
void EasyUnlockServiceSignin::LoggedInStateChanged() {
« no previous file with comments | « no previous file | chromeos/tpm/tpm_token_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698