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( |