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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 2691163002: Added external memory counting for IDBValue (Closed)
Patch Set: fixed signed int Created 3 years, 10 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: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
index f8239852e790f6811f2c33441c379fe578ae3cea..122e8f483060e4dc74f512b344219e87473ea384 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
+++ b/third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp
@@ -394,9 +394,8 @@ static v8::Local<v8::Value> deserializeIDBValueData(v8::Isolate* isolate,
if (!value || value->isNull())
return v8::Null(isolate);
- const SharedBuffer* valueData = value->data();
RefPtr<SerializedScriptValue> serializedValue =
- SerializedScriptValue::create(valueData->data(), valueData->size());
+ value->createSerializedValue();
return serializedValue->deserialize(isolate, nullptr, value->blobInfo());
}

Powered by Google App Engine
This is Rietveld 408576698