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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2755383004: Encapsulate optional SerializedScriptValue serialize/deserialize parameters. (Closed)
Patch Set: fuzzer Created 3 years, 9 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/modules/indexeddb/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index 1ea1e7abcb1a232c1440f1f12435b66fdc9a8515..c37d6a259b2c701521c8cee42571ed0c4da2efea 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -406,9 +406,11 @@ IDBRequest* IDBObjectStore::put(ScriptState* scriptState,
v8::Isolate* isolate = scriptState->isolate();
DCHECK(isolate->InContext());
Vector<WebBlobInfo> blobInfo;
+ SerializedScriptValue::SerializeOptions options;
+ options.blobInfo = &blobInfo;
RefPtr<SerializedScriptValue> serializedValue =
- SerializedScriptValue::serialize(isolate, value.v8Value(), nullptr,
- &blobInfo, exceptionState);
+ SerializedScriptValue::serialize(isolate, value.v8Value(), options,
+ exceptionState);
if (exceptionState.hadException())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698