| Index: content/renderer/webcrypto/webcrypto_impl.cc
|
| diff --git a/content/renderer/webcrypto/webcrypto_impl.cc b/content/renderer/webcrypto/webcrypto_impl.cc
|
| index 38dc7729f87e796ef1dc19c60d2ace7dcfd7fb10..173a6fddf64d65e02c9e9c368221978609f07398 100644
|
| --- a/content/renderer/webcrypto/webcrypto_impl.cc
|
| +++ b/content/renderer/webcrypto/webcrypto_impl.cc
|
| @@ -156,6 +156,18 @@ void WebCryptoImpl::importKey(
|
| result.completeWithKey(key);
|
| }
|
|
|
| +void WebCryptoImpl::exportKey(
|
| + WebKit::WebCryptoKeyFormat format,
|
| + const WebKit::WebCryptoKey& key,
|
| + WebKit::WebCryptoResult result) {
|
| + WebKit::WebArrayBuffer buffer;
|
| + if (!ExportKeyInternal(format, key, &buffer)) {
|
| + result.completeWithError();
|
| + return;
|
| + }
|
| + result.completeWithBuffer(buffer);
|
| +}
|
| +
|
| void WebCryptoImpl::sign(
|
| const WebKit::WebCryptoAlgorithm& algorithm,
|
| const WebKit::WebCryptoKey& key,
|
|
|