| Index: chrome/renderer/extensions/enterprise_platform_keys_natives.cc
|
| diff --git a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc b/chrome/renderer/extensions/enterprise_platform_keys_natives.cc
|
| index 2e11b25d09b642d2448fd1f8cc650dc720ada04e..9bccc8126e5125b655ffcfcc44d21697b87f3e37 100644
|
| --- a/chrome/renderer/extensions/enterprise_platform_keys_natives.cc
|
| +++ b/chrome/renderer/extensions/enterprise_platform_keys_natives.cc
|
| @@ -56,6 +56,15 @@ scoped_ptr<base::DictionaryValue> WebCryptoAlgorithmToBaseValue(
|
| base::BinaryValue::CreateWithCopiedBuffer(
|
| reinterpret_cast<const char*>(public_exponent.data()),
|
| public_exponent.size()));
|
| +
|
| + const blink::WebCryptoAlgorithm& hash = rsaHashedKeyGen->hash();
|
| + DCHECK(!hash.isNull());
|
| + const blink::WebCryptoAlgorithmInfo* hash_info =
|
| + blink::WebCryptoAlgorithm::lookupAlgorithmInfo(hash.id());
|
| +
|
| + scoped_ptr<base::DictionaryValue> hash_dict(new base::DictionaryValue);
|
| + hash_dict->SetStringWithoutPathExpansion("name", hash_info->name);
|
| + dict->SetWithoutPathExpansion("hash", hash_dict.release());
|
| }
|
| // Otherwise, |algorithm| is missing support here or no parameters were
|
| // required.
|
|
|