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 a3ffdf625f7c40db1f4894174e921139add96447..80166e19e3c1096cbbe11a6700a922b7b9ef7515 100644 |
--- a/content/child/service_worker/service_worker_dispatcher.cc |
+++ b/content/child/service_worker/service_worker_dispatcher.cc |
@@ -877,13 +877,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::OnCountFeature(int thread_id, |