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

Unified Diff: base/task_scheduler/task_scheduler_impl.cc

Issue 2873733003: Introduce SingleThreadTaskRunnerThreadMode (Closed)
Patch Set: Add missing "base" Created 3 years, 7 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 | « base/task_scheduler/task_scheduler_impl.h ('k') | base/task_scheduler/task_scheduler_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.cc
diff --git a/base/task_scheduler/task_scheduler_impl.cc b/base/task_scheduler/task_scheduler_impl.cc
index 0b22c84619d95292bf4cb37e9e64a84c6e534bd5..b1b2d36c11696d280c43387a4f209c767f2bb706 100644
--- a/base/task_scheduler/task_scheduler_impl.cc
+++ b/base/task_scheduler/task_scheduler_impl.cc
@@ -142,7 +142,8 @@ TaskSchedulerImpl::CreateSequencedTaskRunnerWithTraits(
scoped_refptr<SingleThreadTaskRunner>
TaskSchedulerImpl::CreateSingleThreadTaskRunnerWithTraits(
- const TaskTraits& traits) {
+ const TaskTraits& traits,
+ SingleThreadTaskRunnerThreadMode thread_mode) {
const auto& environment_params =
kEnvironmentParams[GetEnvironmentIndexForTraits(traits)];
return single_thread_task_runner_manager_
@@ -153,7 +154,9 @@ TaskSchedulerImpl::CreateSingleThreadTaskRunnerWithTraits(
#if defined(OS_WIN)
scoped_refptr<SingleThreadTaskRunner>
-TaskSchedulerImpl::CreateCOMSTATaskRunnerWithTraits(const TaskTraits& traits) {
+TaskSchedulerImpl::CreateCOMSTATaskRunnerWithTraits(
+ const TaskTraits& traits,
+ SingleThreadTaskRunnerThreadMode thread_mode) {
const auto& environment_params =
kEnvironmentParams[GetEnvironmentIndexForTraits(traits)];
return single_thread_task_runner_manager_.CreateCOMSTATaskRunnerWithTraits(
« no previous file with comments | « base/task_scheduler/task_scheduler_impl.h ('k') | base/task_scheduler/task_scheduler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698