Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp
diff --git a/Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp b/Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp
index 5dab691b7f826821befd615de90fbb4ff1921880..a40bb37fff36edec13738a40d0449235d35d3ea2 100644
--- a/Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp
+++ b/Source/bindings/modules/v8/custom/V8CryptoKeyCustom.cpp
@@ -7,7 +7,7 @@
#include "bindings/core/v8/Dictionary.h"
#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
+#include "bindings/core/v8/V8Uint8Array.h"
#include "public/platform/WebCryptoKeyAlgorithm.h"
#include "wtf/Uint8Array.h"
@@ -43,8 +43,7 @@ public:
virtual void setUint8Array(const char* propertyName, const blink::WebVector<unsigned char>& vector)
{
- RefPtr<Uint8Array> uint8Array = Uint8Array::create(vector.data(), vector.size());
- m_dictionary.set(propertyName, toV8(uint8Array.get(), m_holder, m_isolate));
+ m_dictionary.set(propertyName, toV8(DOMUint8Array::create(vector.data(), vector.size()), m_holder, m_isolate));
}
const Dictionary& dictionary() const { return m_dictionary; }
« no previous file with comments | « Source/bindings/modules/v8/custom/V8CryptoCustom.cpp ('k') | Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698