Delay creating easy signin TPM keys until TPM is initialized
commitfbb6296bee4b2c8fe50ddc2df53ca580560815f6
authortbarzic <tbarzic@chromium.org>
Tue, 12 May 2015 20:35:27 +0000 (12 13:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 20:35:50 +0000 (12 20:35 +0000)
tree22ffdfb6bc418d9ca60e0a46a035274087baf61e
parent2ef682a3fbfc58b94833ce3ff86080f4139d4a97
Delay creating easy signin TPM keys until TPM is initialized

EasyUnlockTpmKeyManager should not start poking TPM on worker thread
before TPM initialization is finished on IO thread in order to
prevent IO thread being blocked during startup waiting for easy
signin key pair being created.

BUG=464524
TEST=Easy signin works after initializing easy unlock and signin in
once.

Review URL: https://codereview.chromium.org/1138123003

Cr-Commit-Position: refs/heads/master@{#329475}
chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc
chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.h
chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc
chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_unittest.cc