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

Unified Diff: crypto/nss_util.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: . 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
« chrome/browser/profiles/profile_io_data.cc ('K') | « chromeos/tpm_token_loader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/nss_util.cc
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
index 02c932711968761233e0217bea0ccf3507ffbff6..49bd7dd7fb3e88d6dee755e5c20e60328373ad06 100644
--- a/crypto/nss_util.cc
+++ b/crypto/nss_util.cc
@@ -347,8 +347,7 @@ class NSSInitSingleton {
base::Unretained(this), // NSSInitSingleton is leaky
callback,
base::Passed(&tpm_args)),
- true /* task_is_slow */
- )) {
+ true /* task_is_slow */)) {
initializing_tpm_token_ = true;
} else {
base::MessageLoop::current()->PostTask(FROM_HERE,
@@ -507,8 +506,7 @@ class NSSInitSingleton {
base::Unretained(this), // NSSInitSingleton is leaky
username_hash,
base::Passed(&tpm_args)),
- true /* task_is_slow */
- );
+ true /* task_is_slow */);
}
void OnInitializedTPMForChromeOSUser(const std::string& username_hash,
@@ -538,7 +536,7 @@ class NSSInitSingleton {
if (username_hash.empty()) {
DVLOG(2) << "empty username_hash";
- return ScopedPK11Slot();
+ return ScopedPK11Slot(PK11_GetInternalKeySlot());
pneubeck (no reviews) 2014/12/02 11:56:47 the fact that you have to change this to make the
}
if (chromeos_user_map_.find(username_hash) == chromeos_user_map_.end()) {
« chrome/browser/profiles/profile_io_data.cc ('K') | « chromeos/tpm_token_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698