Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index 169c1e44fde694950329c8be9cee4d3074affc67..4db77a7dc71a0cee221e5b97512f8fd948e2c029 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -577,7 +577,7 @@ void ChildThreadImpl::OnChannelError() { |
} |
bool ChildThreadImpl::Send(IPC::Message* msg) { |
- DCHECK(base::MessageLoop::current() == message_loop()); |
+ DCHECK(message_loop_->task_runner()->BelongsToCurrentThread()); |
if (!channel_) { |
delete msg; |
return false; |
@@ -635,13 +635,13 @@ shell::InterfaceProvider* ChildThreadImpl::GetInterfaceProviderForConnection() { |
} |
IPC::MessageRouter* ChildThreadImpl::GetRouter() { |
- DCHECK(base::MessageLoop::current() == message_loop()); |
+ DCHECK(message_loop_->task_runner()->BelongsToCurrentThread()); |
return &router_; |
} |
std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory( |
size_t buf_size) { |
- DCHECK(base::MessageLoop::current() == message_loop()); |
+ DCHECK(message_loop_->task_runner()->BelongsToCurrentThread()); |
return AllocateSharedMemory(buf_size, this, nullptr); |
} |