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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… 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 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,
« no previous file with comments | « content/child/blob_storage/webblobregistry_impl.cc ('k') | content/child/service_worker/service_worker_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698