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

Unified Diff: content/common/child_process_host_impl.cc

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index b62ec77e1cb85dbde2ac084727d2d57993f8e68d..f03402823bdf160a01cdb4e041fb42348763644e 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -20,6 +20,7 @@
#include "base/strings/stringprintf.h"
#include "base/synchronization/lock.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "content/common/child_process_messages.h"
#include "content/public/common/child_process_host_delegate.h"
@@ -184,8 +185,9 @@ std::string ChildProcessHostImpl::CreateChannel() {
bool ChildProcessHostImpl::InitChannel() {
#if USE_ATTACHMENT_BROKER
+ DCHECK(base::MessageLoopForIO::IsCurrent());
IPC::AttachmentBroker::GetGlobal()->RegisterCommunicationChannel(
- channel_.get(), base::MessageLoopForIO::current()->task_runner());
+ channel_.get(), base::ThreadTaskRunnerHandle::Get());
#endif
if (!channel_->Connect()) {
#if USE_ATTACHMENT_BROKER
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | content/public/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698