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

Unified Diff: mojo/message_pump/handle_watcher.cc

Issue 2080923002: Remove calls to MessageLoop::current() in mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/message_pump/handle_watcher.cc
diff --git a/mojo/message_pump/handle_watcher.cc b/mojo/message_pump/handle_watcher.cc
index 9bdbb2a0d995cc483f8981da9f4fc56346682b23..7f6f56165da4183fe530a84ea97b7e1a54617483 100644
--- a/mojo/message_pump/handle_watcher.cc
+++ b/mojo/message_pump/handle_watcher.cc
@@ -277,7 +277,7 @@ void WatcherThreadManager::AddRequest(const RequestData& data) {
}
void WatcherThreadManager::ProcessRequestsOnBackendThread() {
- DCHECK_EQ(thread_.message_loop(), base::MessageLoop::current());
+ DCHECK(thread_.task_runner()->BelongsToCurrentThread());
Requests requests;
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698