Chromium Code Reviews| Index: base/task_scheduler/task_scheduler.h |
| diff --git a/base/task_scheduler/task_scheduler.h b/base/task_scheduler/task_scheduler.h |
| index b8da64b891a952a4cc629ccae962c32c765c9645..e344e6f9f43fbfd2c9398fffec31200384d9746c 100644 |
| --- a/base/task_scheduler/task_scheduler.h |
| +++ b/base/task_scheduler/task_scheduler.h |
| @@ -5,7 +5,9 @@ |
| #ifndef BASE_TASK_SCHEDULER_TASK_SCHEDULER_H_ |
| #define BASE_TASK_SCHEDULER_TASK_SCHEDULER_H_ |
| +#include <map> |
| #include <memory> |
| +#include <string> |
| #include "base/base_export.h" |
| #include "base/callback_forward.h" |
| @@ -60,8 +62,10 @@ class BASE_EXPORT TaskScheduler { |
| // API for this process. |
| static void SetInstance(std::unique_ptr<TaskScheduler> task_scheduler); |
| - // Initializes the default task scheduler for this process. |
| - static void InitializeDefaultTaskScheduler(); |
| + // Initializes the default task scheduler for this process. |variation_params| |
| + // is used to configure the scheduler (can be empty). |
| + static void InitializeDefaultTaskScheduler( |
|
robliao
2016/06/14 21:43:44
Can TaskSchedulerImpl pick these up without the ca
fdoray
2016/06/15 17:14:32
No because variations::GetVariationParams() is in
robliao
2016/06/15 17:32:37
Looking a bit more broadly, it's conceivable that
fdoray
2016/06/15 19:54:53
What do you think of this?
class SchedulerThreadP
gab
2016/06/15 19:56:03
I think it's fine to match our variations to finch
fdoray
2016/06/16 13:02:05
gab@: WDYT of my new idea? (2016/06/15 19:54:53 ht
gab
2016/06/16 15:07:07
As discussed in person, this SGTM as a customizabl
fdoray
2016/06/16 18:10:53
Our design doc says that we'll have a TestTaskSche
|
| + const std::map<std::string, std::string>& variation_params); |
| // Retrieve the TaskScheduler set via SetInstance() or |
| // InitializeDefaultTaskScheduler(). This should be used very rarely; most |