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

Unified Diff: base/task_scheduler/task_scheduler.cc

Issue 2064073003: TaskScheduler: Make the worker pools of TaskSchedulerImpl configurable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR robliao #3 (map argument first) Created 4 years, 6 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: base/task_scheduler/task_scheduler.cc
diff --git a/base/task_scheduler/task_scheduler.cc b/base/task_scheduler/task_scheduler.cc
index d4a5ca371a20b7486d52ce4440a48da88bae1a08..10fb8868639cbffc204cdeca6c7bc86168f8003a 100644
--- a/base/task_scheduler/task_scheduler.cc
+++ b/base/task_scheduler/task_scheduler.cc
@@ -23,8 +23,9 @@ void TaskScheduler::SetInstance(std::unique_ptr<TaskScheduler> task_scheduler) {
}
// static
-void TaskScheduler::InitializeDefaultTaskScheduler() {
- SetInstance(internal::TaskSchedulerImpl::Create());
+void TaskScheduler::InitializeDefaultTaskScheduler(
+ const std::map<std::string, std::string>& variation_params) {
+ SetInstance(internal::TaskSchedulerImpl::Create(variation_params));
}
// static

Powered by Google App Engine
This is Rietveld 408576698