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

Unified Diff: base/test/scoped_async_task_scheduler.cc

Issue 2845913004: Remove TaskScheduler::CreateAndSetDefaultTaskScheduler(). (Closed)
Patch Set: fix-build-error Created 3 years, 8 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
« no previous file with comments | « base/task_scheduler/task_scheduler.cc ('k') | base/test/scoped_task_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/scoped_async_task_scheduler.cc
diff --git a/base/test/scoped_async_task_scheduler.cc b/base/test/scoped_async_task_scheduler.cc
index 0b5736a6e5cc72d079418bf1998b014a96883021..f556d9beb23cf5fb3361e009457a195409af9ed5 100644
--- a/base/test/scoped_async_task_scheduler.cc
+++ b/base/test/scoped_async_task_scheduler.cc
@@ -21,10 +21,10 @@ ScopedAsyncTaskScheduler::ScopedAsyncTaskScheduler() {
const SchedulerWorkerPoolParams worker_pool_params(
SchedulerWorkerPoolParams::StandbyThreadPolicy::ONE, kMaxThreads,
kSuggestedReclaimTime);
- TaskScheduler::CreateAndSetDefaultTaskScheduler(
- "ScopedAsync", {worker_pool_params, worker_pool_params,
- worker_pool_params, worker_pool_params});
+ TaskScheduler::Create("ScopedAsync");
task_scheduler_ = TaskScheduler::GetInstance();
+ TaskScheduler::GetInstance()->Start({worker_pool_params, worker_pool_params,
+ worker_pool_params, worker_pool_params});
}
ScopedAsyncTaskScheduler::~ScopedAsyncTaskScheduler() {
« no previous file with comments | « base/task_scheduler/task_scheduler.cc ('k') | base/test/scoped_task_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698