Index: content/child/webcrypto/shared_crypto.cc |
diff --git a/content/child/webcrypto/shared_crypto.cc b/content/child/webcrypto/shared_crypto.cc |
index 580754ae47966343874aee1766ea68b8d2672d52..bbcd9a674a191ab1eab7d7f2448166001381bff2 100644 |
--- a/content/child/webcrypto/shared_crypto.cc |
+++ b/content/child/webcrypto/shared_crypto.cc |
@@ -315,15 +315,10 @@ Status GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm, |
const blink::WebCryptoHmacKeyGenParams* params = |
algorithm.hmacKeyGenParams(); |
DCHECK(params); |
-#if defined(WEBCRYPTO_HMAC_BITS) |
if (params->hasLengthBits()) { |
if (params->optionalLengthBits() % 8) |
return Status::ErrorGenerateKeyLength(); |
keylen_bytes = params->optionalLengthBits() / 8; |
-#else |
- if (params->hasLengthBytes()) { |
- keylen_bytes = params->optionalLengthBytes(); |
-#endif |
} else { |
keylen_bytes = ShaBlockSizeBytes(params->hash().id()); |
if (keylen_bytes == 0) |