Index: Source/bindings/modules/v8/custom/V8CryptoCustom.cpp |
diff --git a/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp b/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp |
index dc461f90b7421bc244880b4130cc4963b4a6be57..0b9d8f1954f191ae277e43810ee53f81b6f141b2 100644 |
--- a/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp |
+++ b/Source/bindings/modules/v8/custom/V8CryptoCustom.cpp |
@@ -27,11 +27,10 @@ |
#include "bindings/core/v8/ExceptionMessages.h" |
#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/V8ArrayBufferView.h" |
#include "bindings/core/v8/V8Binding.h" |
-#include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h" |
#include "core/dom/ExceptionCode.h" |
#include "modules/crypto/Crypto.h" |
-#include "wtf/ArrayBufferView.h" |
namespace blink { |
@@ -48,11 +47,11 @@ void V8Crypto::getRandomValuesMethodCustom(const v8::FunctionCallbackInfo<v8::Va |
if (!V8ArrayBufferView::hasInstance(buffer, info.GetIsolate())) { |
exceptionState.throwTypeError("First argument is not an ArrayBufferView"); |
} else { |
- ArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Handle<v8::Object>::Cast(buffer)); |
+ DOMArrayBufferView* arrayBufferView = V8ArrayBufferView::toImpl(v8::Handle<v8::Object>::Cast(buffer)); |
ASSERT(arrayBufferView); |
Crypto* crypto = V8Crypto::toImpl(info.Holder()); |
- crypto->getRandomValues(arrayBufferView, exceptionState); |
+ crypto->getRandomValues(arrayBufferView->view(), exceptionState); |
} |
if (exceptionState.throwIfNeeded()) |