Index: crypto/nss_util.h |
diff --git a/crypto/nss_util.h b/crypto/nss_util.h |
index 4f8a1d679b803dabdf2249e621af41eac547e465..f7d8c6b80e9a2bec22cb50a17cad826dcbb39143 100644 |
--- a/crypto/nss_util.h |
+++ b/crypto/nss_util.h |
@@ -95,9 +95,9 @@ CRYPTO_EXPORT void LoadNSSLibraries(); |
bool CheckNSSVersion(const char* version); |
#if defined(OS_CHROMEOS) |
-// Indicates that NSS should load the Chaps library so that we |
-// can access the TPM through NSS. Once this is called, |
-// GetPrivateNSSKeySlot() will return the TPM slot if one was found. |
+// Indicates that NSS should use the Chaps library so that we |
+// can access the TPM through NSS. InitializeTPMToken and |
+// InitializeTPMForChromeOSUser must still be called to load the slots. |
CRYPTO_EXPORT void EnableTPMTokenForNSS(); |
// Returns true if EnableTPMTokenForNSS has been called. |
@@ -113,11 +113,11 @@ CRYPTO_EXPORT bool IsTPMTokenEnabledForNSS(); |
CRYPTO_EXPORT bool IsTPMTokenReady(const base::Closure& callback) |
WARN_UNUSED_RESULT; |
-// Initialize the TPM token. The |callback| will run on the same thread with |
-// true if the token and slot were successfully loaded or were already |
-// initialized. |callback| will be passed false if loading failed. |
-// Once called, InitializeTPMToken must not be called again until the |callback| |
-// has been run. |
+// Initialize the TPM token and system slot. The |callback| will run on the same |
+// thread with true if the token and slot were successfully loaded or were |
+// already initialized. |callback| will be passed false if loading failed. Once |
+// called, InitializeTPMToken must not be called again until the |callback| has |
+// been run. |
CRYPTO_EXPORT void InitializeTPMToken( |
pneubeck (no reviews)
2014/07/10 09:44:11
optional nit: this function and the internal ones
mattm
2014/07/10 22:20:45
Done.
|
int token_slot_id, |
const base::Callback<void(bool)>& callback); |