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