Index: content/child/child_thread_impl.cc |
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc |
index f5290ffdb5d913c22323b51e5b38d937ba7e0525..3bac8ae72e2deaecb0b63934a166125cc760b8af 100644 |
--- a/content/child/child_thread_impl.cc |
+++ b/content/child/child_thread_impl.cc |
@@ -565,7 +565,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; |
@@ -617,13 +617,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); |
} |