| Index: third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| diff --git a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| index 93b13d4bfff20c0eb7307e4219c9c11de641f3f8..b8f4bb97e8cbbae1be4e9a6b9ec78b0e9cb0f367 100644
|
| --- a/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| +++ b/third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp
|
| @@ -39,6 +39,7 @@
|
| #include "bindings/modules/v8/V8CryptoKey.h"
|
| #include "core/dom/DOMArrayPiece.h"
|
| #include "core/dom/DOMTypedArray.h"
|
| +#include "modules/crypto/CryptoUtilities.h"
|
| #include "platform/wtf/MathExtras.h"
|
| #include "platform/wtf/PtrUtil.h"
|
| #include "platform/wtf/Vector.h"
|
| @@ -50,8 +51,6 @@ namespace blink {
|
|
|
| namespace {
|
|
|
| -typedef ArrayBufferOrArrayBufferView BufferSource;
|
| -
|
| struct AlgorithmNameMapping {
|
| // Must be an upper case ASCII string.
|
| const char* const algorithm_name;
|
| @@ -264,11 +263,6 @@ class ErrorContext {
|
| Vector<const char*, 10> messages_;
|
| };
|
|
|
| -static WebVector<uint8_t> CopyBytes(const DOMArrayPiece& source) {
|
| - return WebVector<uint8_t>(static_cast<const uint8_t*>(source.Data()),
|
| - source.ByteLength());
|
| -}
|
| -
|
| // Defined by the WebCrypto spec as:
|
| //
|
| // typedef (ArrayBuffer or ArrayBufferView) BufferSource;
|
|
|