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

Unified Diff: Source/core/dom/DOMArrayBuffer.cpp

Issue 1183763003: Remove ArrayBufferDeallocationObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move callback to WTF.cpp 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/core/dom/DOMArrayBuffer.cpp
diff --git a/Source/core/dom/DOMArrayBuffer.cpp b/Source/core/dom/DOMArrayBuffer.cpp
index 41fdae243981748fd6fc8390497f5bd824fe493a..7556aec914f04a59e53453e910a26083e69f2a87 100644
--- a/Source/core/dom/DOMArrayBuffer.cpp
+++ b/Source/core/dom/DOMArrayBuffer.cpp
@@ -7,7 +7,6 @@
#include "bindings/core/v8/DOMDataStore.h"
#include "bindings/core/v8/V8DOMWrapper.h"
-#include "core/dom/DOMArrayBufferDeallocationObserver.h"
namespace blink {
@@ -23,12 +22,6 @@ v8::Local<v8::Object> DOMArrayBuffer::wrap(v8::Isolate* isolate, v8::Local<v8::O
const WrapperTypeInfo* wrapperTypeInfo = this->wrapperTypeInfo();
v8::Local<v8::Object> wrapper = v8::ArrayBuffer::New(isolate, data(), byteLength());
- // Only when we create a new wrapper, let V8 know that we allocated and
- // associated a new memory block with the wrapper. Note that
- // setDeallocationObserver implicitly calls
- // DOMArrayBufferDeallocationObserver::blinkAllocatedMemory.
- buffer()->setDeallocationObserver(DOMArrayBufferDeallocationObserver::instance());
-
return associateWithWrapper(isolate, wrapperTypeInfo, wrapper);
}

Powered by Google App Engine
This is Rietveld 408576698