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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h

Issue 2017893002: [Binding] [Refactoring] Use SerializedScriptValue class as external interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error Created 4 years, 7 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/V8ServiceWorkerMessageEventInternal.h
diff --git a/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h b/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
index e2baa0fb10aaf47e796d4b8dc4fdd049fb354ac4..9b3f945fd4c8d03cfb50b24d9ed06db0d6494fb8 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
+++ b/third_party/WebKit/Source/bindings/modules/v8/V8ServiceWorkerMessageEventInternal.h
@@ -56,7 +56,7 @@ void V8ServiceWorkerMessageEventInternal::constructorCustom(const v8::FunctionCa
v8::Local<v8::Value> v8Data = eventInitDict.data().v8Value();
V8HiddenValue::setHiddenValue(ScriptState::current(info.GetIsolate()), wrapper, V8HiddenValue::data(info.GetIsolate()), v8Data);
if (DOMWrapperWorld::current(info.GetIsolate()).isIsolatedWorld())
- impl->setSerializedData(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIsolate(), v8Data));
+ impl->setSerializedData(SerializedScriptValue::serializeAndSwallowExceptions(info.GetIsolate(), v8Data));
}
v8SetReturnValue(info, wrapper);
}
@@ -83,7 +83,7 @@ void V8ServiceWorkerMessageEventInternal::dataAttributeGetterCustom(const v8::Fu
if (!mainWorldData.IsEmpty()) {
// TODO(bashi): Enter the main world's ScriptState::Scope while
// serializing the main world's value.
- event->setSerializedData(SerializedScriptValueFactory::instance().createAndSwallowExceptions(info.GetIsolate(), mainWorldData));
+ event->setSerializedData(SerializedScriptValue::serializeAndSwallowExceptions(info.GetIsolate(), mainWorldData));
data = event->serializedData()->deserialize();
}
}

Powered by Google App Engine
This is Rietveld 408576698