OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/tpm_token_loader.h" | 5 #include "chromeos/tpm_token_loader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 216 } |
217 case TPM_TOKEN_INITIALIZED: { | 217 case TPM_TOKEN_INITIALIZED: { |
218 NotifyTPMTokenReady(); | 218 NotifyTPMTokenReady(); |
219 return; | 219 return; |
220 } | 220 } |
221 } | 221 } |
222 } | 222 } |
223 | 223 |
224 void TPMTokenLoader::RetryTokenInitializationLater() { | 224 void TPMTokenLoader::RetryTokenInitializationLater() { |
225 CHECK(thread_checker_.CalledOnValidThread()); | 225 CHECK(thread_checker_.CalledOnValidThread()); |
226 LOG(WARNING) << "Retry token initialization later."; | 226 VLOG(1) << "Retry token initialization later."; |
227 base::MessageLoopProxy::current()->PostDelayedTask( | 227 base::MessageLoopProxy::current()->PostDelayedTask( |
228 FROM_HERE, | 228 FROM_HERE, |
229 base::Bind(&TPMTokenLoader::ContinueTokenInitialization, | 229 base::Bind(&TPMTokenLoader::ContinueTokenInitialization, |
230 weak_factory_.GetWeakPtr()), | 230 weak_factory_.GetWeakPtr()), |
231 tpm_request_delay_); | 231 tpm_request_delay_); |
232 tpm_request_delay_ = GetNextRequestDelayMs(tpm_request_delay_); | 232 tpm_request_delay_ = GetNextRequestDelayMs(tpm_request_delay_); |
233 } | 233 } |
234 | 234 |
235 void TPMTokenLoader::OnPersistentNSSDBOpened() { | 235 void TPMTokenLoader::OnPersistentNSSDBOpened() { |
236 VLOG(1) << "PersistentNSSDBOpened"; | 236 VLOG(1) << "PersistentNSSDBOpened"; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 void TPMTokenLoader::NotifyTPMTokenReady() { | 295 void TPMTokenLoader::NotifyTPMTokenReady() { |
296 FOR_EACH_OBSERVER(Observer, observers_, OnTPMTokenReady()); | 296 FOR_EACH_OBSERVER(Observer, observers_, OnTPMTokenReady()); |
297 } | 297 } |
298 | 298 |
299 void TPMTokenLoader::LoggedInStateChanged() { | 299 void TPMTokenLoader::LoggedInStateChanged() { |
300 VLOG(1) << "LoggedInStateChanged"; | 300 VLOG(1) << "LoggedInStateChanged"; |
301 MaybeStartTokenInitialization(); | 301 MaybeStartTokenInitialization(); |
302 } | 302 } |
303 | 303 |
304 } // namespace chromeos | 304 } // namespace chromeos |
OLD | NEW |