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

Side by Side Diff: chromeos/tpm_token_loader.cc

Issue 135193007: Use user specific NSSDatabase in CertLoader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 VLOG(1) << "OnTPMTokenInitialized: " << success; 270 VLOG(1) << "OnTPMTokenInitialized: " << success;
271 if (!success) { 271 if (!success) {
272 RetryTokenInitializationLater(); 272 RetryTokenInitializationLater();
273 return; 273 return;
274 } 274 }
275 tpm_token_state_ = TPM_TOKEN_INITIALIZED; 275 tpm_token_state_ = TPM_TOKEN_INITIALIZED;
276 ContinueTokenInitialization(); 276 ContinueTokenInitialization();
277 } 277 }
278 278
279 void TPMTokenLoader::NotifyTPMTokenReady() { 279 void TPMTokenLoader::NotifyTPMTokenReady() {
280 FOR_EACH_OBSERVER(Observer, observers_, 280 FOR_EACH_OBSERVER(Observer, observers_, OnTPMTokenReady());
281 OnTPMTokenReady(tpm_user_pin_, tpm_token_name_, tpm_token_slot_id_));
282 } 281 }
283 282
284 void TPMTokenLoader::LoggedInStateChanged() { 283 void TPMTokenLoader::LoggedInStateChanged() {
285 VLOG(1) << "LoggedInStateChanged"; 284 VLOG(1) << "LoggedInStateChanged";
286 MaybeStartTokenInitialization(); 285 MaybeStartTokenInitialization();
287 } 286 }
288 287
289 } // namespace chromeos 288 } // namespace chromeos
OLDNEW
« chromeos/network/network_connection_handler.cc ('K') | « chromeos/tpm_token_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698