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

Unified Diff: components/scheduler/child/web_task_runner_impl.cc

Issue 2123783002: Expose RunsTasksOnCurrentThread through WebTaskRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@00_fix_thread_affinity
Patch Set: rebase Created 4 years, 5 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
Index: components/scheduler/child/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/components/scheduler/child/web_task_runner_impl.cc
index d04af7f8ca15b83f492c7f98b6267b9a1e66c44f..269429c2399ed3f5cd62cdda90bdeab21f8ca79d 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/components/scheduler/child/web_task_runner_impl.cc
@@ -38,6 +38,10 @@ void WebTaskRunnerImpl::postDelayedTask(
base::TimeDelta::FromMillisecondsD(delayMs));
}
+bool WebTaskRunnerImpl::runsTasksOnCurrentThread() {
+ return task_queue_->RunsTasksOnCurrentThread();
+}
+
double WebTaskRunnerImpl::virtualTimeSeconds() const {
return (Now() - base::TimeTicks::UnixEpoch()).InSecondsF();
}
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.h ('k') | third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698