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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2405243003: TaskScheduler: Replace the SchedulerServiceThread with a base::Thread. (Closed)
Patch Set: CR robliao #9 Created 4 years, 2 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_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index f49cccc80e4856833aab0a632b87971c14e9bcc8..9fea54a45153cf1c8377e79001f667f85c2b1967 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -79,15 +79,11 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
// worker pops a Task from it.
void ReEnqueueSequenceCallback(scoped_refptr<Sequence> sequence);
- // Callback invoked when the delayed run time is changed from the
- // DelayedTaskManager.
- void OnDelayedRunTimeUpdated();
-
TaskTracker task_tracker_;
- DelayedTaskManager delayed_task_manager_;
+ Thread service_thread_;
+ std::unique_ptr<DelayedTaskManager> delayed_task_manager_;
const WorkerPoolIndexForTraitsCallback worker_pool_index_for_traits_callback_;
std::vector<std::unique_ptr<SchedulerWorkerPoolImpl>> worker_pools_;
- std::unique_ptr<SchedulerServiceThread> service_thread_;
#if DCHECK_IS_ON()
// Set once JoinForTesting() has returned.

Powered by Google App Engine
This is Rietveld 408576698