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

Unified Diff: content/child/service_worker/service_worker_dispatcher.cc

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: content/child/service_worker/service_worker_dispatcher.cc
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc
index 7c682b0d5c522b35c31694be3b13d97bd073a7c6..e3cea5a5c1b42c6b080b1abeeeecc612c7a2d36d 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -866,13 +866,11 @@ void ServiceWorkerDispatcher::OnPostMessage(
}
blink::WebMessagePortChannelArray ports =
- WebMessagePortChannelImpl::CreatePorts(
- params.message_ports, params.new_routing_ids,
- base::ThreadTaskRunnerHandle::Get());
+ WebMessagePortChannelImpl::CreateFromMessagePorts(params.message_ports);
found->second->dispatchMessageEvent(
WebServiceWorkerImpl::CreateHandle(worker),
- blink::WebString::fromUTF16(params.message), ports);
+ blink::WebString::fromUTF16(params.message), std::move(ports));
}
void ServiceWorkerDispatcher::AddServiceWorker(

Powered by Google App Engine
This is Rietveld 408576698