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

Unified Diff: Source/bindings/tests/results/core/V8ArrayBuffer.cpp

Issue 1186863005: Add a ref-counted data holder to ArrayBufferContents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: type in ArrayBuffer::shareContentsWith Created 5 years, 6 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/tests/results/core/V8ArrayBuffer.cpp
diff --git a/Source/bindings/tests/results/core/V8ArrayBuffer.cpp b/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
index a491e06ccea842c83a4c278c9a1bb7a46e705998..3dcf89d754c67d433ca5edf7675468e0afc473e9 100644
--- a/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
+++ b/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
@@ -46,7 +46,7 @@ TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object)
// Transfer the ownership of the allocated memory to an ArrayBuffer without
// copying.
v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize();
- WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength());
+ WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared);
RefPtr<TestArrayBuffer> buffer = TestArrayBuffer::create(contents);
buffer->associateWithWrapper(v8::Isolate::GetCurrent(), buffer->wrapperTypeInfo(), object);

Powered by Google App Engine
This is Rietveld 408576698