Index: mojo/public/cpp/system/simple_watcher.cc |
diff --git a/mojo/public/cpp/system/simple_watcher.cc b/mojo/public/cpp/system/simple_watcher.cc |
index 3c877495f8139f16644afd1acedc6615a4bcf353..17d1198309ba9fea8e103e31c8fc22ebcbe8f578 100644 |
--- a/mojo/public/cpp/system/simple_watcher.cc |
+++ b/mojo/public/cpp/system/simple_watcher.cc |
@@ -95,7 +95,7 @@ class SimpleWatcher::Context : public base::RefCountedThreadSafe<Context> { |
} |
if ((flags & MOJO_WATCHER_NOTIFICATION_FLAG_FROM_SYSTEM) && |
- task_runner_->RunsTasksOnCurrentThread() && weak_watcher_ && |
+ task_runner_->RunsTasksInCurrentSequence() && weak_watcher_ && |
weak_watcher_->is_default_task_runner_) { |
// System notifications will trigger from the task runner passed to |
// mojo::edk::ScopedIPCSupport. In Chrome this happens to always be the |