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

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

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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 dfbcfc18f6c06fb4e2e20fd6796f1fa9e81b3b64..e68f64451ba918e53105238a7f6daec12016fdd6 100644
--- a/content/child/service_worker/service_worker_dispatcher.cc
+++ b/content/child/service_worker/service_worker_dispatcher.cc
@@ -6,6 +6,7 @@
#include "base/lazy_instance.h"
#include "base/stl_util.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_local.h"
#include "base/trace_event/trace_event.h"
#include "content/child/child_thread_impl.h"
@@ -636,9 +637,9 @@ void ServiceWorkerDispatcher::OnPostMessage(
}
blink::WebMessagePortChannelArray ports =
- WebMessagePortChannelImpl::CreatePorts(sent_message_ports,
- new_routing_ids,
- base::MessageLoopProxy::current());
+ WebMessagePortChannelImpl::CreatePorts(
+ sent_message_ports, new_routing_ids,
+ base::ThreadTaskRunnerHandle::Get());
found->second->dispatchMessageEvent(message, ports);
}
« no previous file with comments | « content/child/scoped_child_process_reference.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