Index: components/scheduler/child/scheduler_helper.h |
diff --git a/components/scheduler/child/scheduler_helper.h b/components/scheduler/child/scheduler_helper.h |
index 0348a6808792118a742870a57642af06e0a85b03..c19f0236a55a99da4cfa43af38dee4828bef9ee7 100644 |
--- a/components/scheduler/child/scheduler_helper.h |
+++ b/components/scheduler/child/scheduler_helper.h |
@@ -22,7 +22,8 @@ namespace scheduler { |
class SchedulerTqmDelegate; |
// Common scheduler functionality for default tasks. |
-class SCHEDULER_EXPORT SchedulerHelper : public TaskQueueManager::Observer { |
+class SCHEDULER_EXPORT SchedulerHelper |
+ : public TaskQueueManager::Observer { |
public: |
// Category strings must have application lifetime (statics or |
// literals). They may not include " chars. |
@@ -57,6 +58,11 @@ class SCHEDULER_EXPORT SchedulerHelper : public TaskQueueManager::Observer { |
void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer); |
void RemoveTaskObserver(base::MessageLoop::TaskObserver* task_observer); |
+ void SetTaskTimeTracker(TaskTimeTracker* task_time_tracker) { |
+ if (task_queue_manager_) |
+ task_queue_manager_->SetTaskTimeTracker(task_time_tracker); |
+ } |
+ |
// Shuts down the scheduler by dropping any remaining pending work in the work |
// queues. After this call any work posted to the task runners will be |
// silently dropped. |