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

Unified Diff: content/child/child_thread_impl.cc

Issue 2123653003: Remove calls to MessageLoop::current() in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/child/child_process.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « content/child/child_process.cc ('k') | content/ppapi_plugin/ppapi_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698