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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Eliminate unnecessary PostTask 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/core/v8/serialization/V8ScriptValueSerializerTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
index 4da53c0411eec16f40ae1f445ba163196f02d512..5745bb0717c2b6f487f1bad51813ab3af30128e6 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
@@ -77,7 +77,7 @@ v8::Local<v8::Value> roundTrip(v8::Local<v8::Value> value,
: scope.getExceptionState();
// Extract message ports and disentangle them.
- std::unique_ptr<MessagePortChannelArray> channels;
+ MessagePortChannelArray channels;
if (transferables) {
channels = MessagePort::disentanglePorts(scope.getExecutionContext(),
transferables->messagePorts,
@@ -260,8 +260,7 @@ class WebMessagePortChannelImpl final : public WebMessagePortChannel {
public:
// WebMessagePortChannel
void setClient(WebMessagePortChannelClient* client) override {}
- void destroy() override { delete this; }
- void postMessage(const WebString&, WebMessagePortChannelArray*) {
+ void postMessage(const WebString&, WebMessagePortChannelArray) {
NOTIMPLEMENTED();
}
bool tryGetMessage(WebString*, WebMessagePortChannelArray&) { return false; }

Powered by Google App Engine
This is Rietveld 408576698