Index: ios/web/web_thread_impl.cc |
diff --git a/ios/web/web_thread_impl.cc b/ios/web/web_thread_impl.cc |
index 7d80aa5c8852d8706ec76a9421093ee390a6d854..1cfa9a7d3b7f34eb0a82ba549b1aaf67ef7913c2 100644 |
--- a/ios/web/web_thread_impl.cc |
+++ b/ios/web/web_thread_impl.cc |
@@ -377,7 +377,8 @@ bool WebThread::CurrentlyOn(ID identifier) { |
base::AutoLock lock(globals.lock); |
DCHECK(identifier >= 0 && identifier < ID_COUNT); |
return globals.threads[identifier] && |
- globals.threads[identifier]->task_runner()->BelongsToCurrentThread(); |
+ globals.threads[identifier]->message_loop() == |
+ base::MessageLoop::current(); |
} |
// static |