Index: components/webcrypto/test/test_helpers.cc |
diff --git a/components/webcrypto/test/test_helpers.cc b/components/webcrypto/test/test_helpers.cc |
index 39b81963457750ba16926fd99a08073ca3669600..76da7faa40579ceb53abdfbcc765084a5069b5bd 100644 |
--- a/components/webcrypto/test/test_helpers.cc |
+++ b/components/webcrypto/test/test_helpers.cc |
@@ -124,7 +124,7 @@ bool SupportsRsaOaep() { |
bool SupportsRsaPrivateKeyImport() { |
// TODO(eroman): Exclude version test for OS_CHROMEOS |
-#if defined(USE_NSS_CERTS) |
+#if !defined(USE_OPENSSL) && defined(USE_NSS_CERTS) |
crypto::EnsureNSSInit(); |
if (!NSS_VersionCheck("3.16.2")) { |
LOG(WARNING) << "RSA key import is not supported by this version of NSS. " |