| Index: base/task_scheduler/scheduler_worker_thread.h
|
| diff --git a/base/task_scheduler/scheduler_worker_thread.h b/base/task_scheduler/scheduler_worker_thread.h
|
| index 87941f8dc431d6684d7b1d12579f83df56511dc5..3022d100c61239b863c51d95b64e0252ef1360f1 100644
|
| --- a/base/task_scheduler/scheduler_worker_thread.h
|
| +++ b/base/task_scheduler/scheduler_worker_thread.h
|
| @@ -53,9 +53,9 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
|
| // Tasks from Sequences returned by |delegate|. |task_tracker| is used to
|
| // handle shutdown behavior of Tasks. Returns nullptr if creating the
|
| // underlying platform thread fails.
|
| - static std::unique_ptr<SchedulerWorkerThread> CreateSchedulerWorkerThread(
|
| + static std::unique_ptr<SchedulerWorkerThread> Create(
|
| ThreadPriority thread_priority,
|
| - Delegate* delegate,
|
| + std::unique_ptr<Delegate> delegate,
|
| TaskTracker* task_tracker);
|
|
|
| // Destroying a SchedulerWorkerThread in production is not allowed; it is
|
| @@ -74,7 +74,7 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
|
|
|
| private:
|
| SchedulerWorkerThread(ThreadPriority thread_priority,
|
| - Delegate* delegate,
|
| + std::unique_ptr<Delegate> delegate,
|
| TaskTracker* task_tracker);
|
|
|
| // PlatformThread::Delegate:
|
| @@ -88,7 +88,7 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
|
| // Event signaled to wake up this SchedulerWorkerThread.
|
| WaitableEvent wake_up_event_;
|
|
|
| - Delegate* const delegate_;
|
| + const std::unique_ptr<Delegate> delegate_;
|
| TaskTracker* const task_tracker_;
|
|
|
| // Synchronizes access to |should_exit_for_testing_|.
|
|
|