| Index: content/child/webcrypto/webcrypto_util.cc
|
| diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
|
| index 8c28fda36c6c2b5cef9edd5d34a5421e03543b5a..1482bbca228b8ed63dc227b64561d4e465ab7b69 100644
|
| --- a/content/child/webcrypto/webcrypto_util.cc
|
| +++ b/content/child/webcrypto/webcrypto_util.cc
|
| @@ -135,23 +135,6 @@ base::ListValue* CreateJwkKeyOpsFromWebCryptoUsages(
|
| return jwk_key_ops;
|
| }
|
|
|
| -blink::WebCryptoAlgorithm GetInnerHashAlgorithm(
|
| - const blink::WebCryptoAlgorithm& algorithm) {
|
| - DCHECK(!algorithm.isNull());
|
| - switch (algorithm.paramsType()) {
|
| - case blink::WebCryptoAlgorithmParamsTypeHmacImportParams:
|
| - return algorithm.hmacImportParams()->hash();
|
| - case blink::WebCryptoAlgorithmParamsTypeHmacKeyGenParams:
|
| - return algorithm.hmacKeyGenParams()->hash();
|
| - case blink::WebCryptoAlgorithmParamsTypeRsaHashedImportParams:
|
| - return algorithm.rsaHashedImportParams()->hash();
|
| - case blink::WebCryptoAlgorithmParamsTypeRsaHashedKeyGenParams:
|
| - return algorithm.rsaHashedKeyGenParams()->hash();
|
| - default:
|
| - return blink::WebCryptoAlgorithm::createNull();
|
| - }
|
| -}
|
| -
|
| blink::WebCryptoAlgorithm CreateAlgorithm(blink::WebCryptoAlgorithmId id) {
|
| return blink::WebCryptoAlgorithm::adoptParamsAndCreate(id, NULL);
|
| }
|
|
|