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

Unified Diff: ios/web/web_thread_impl.cc

Issue 2329533002: Revert of Remove calls to MessageLoop::current() in ios. (patchset #1 id:1 of https://codereview.ch… (Closed)
Patch Set: Created 4 years, 3 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: ios/web/web_thread_impl.cc
diff --git a/ios/web/web_thread_impl.cc b/ios/web/web_thread_impl.cc
index 370295f259dca84215651729e5dc8d4c38e8f609..e371cd8c5a54813397437fd1da794a36bca2abe9 100644
--- a/ios/web/web_thread_impl.cc
+++ b/ios/web/web_thread_impl.cc
@@ -373,7 +373,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
« 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