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

Unified Diff: content/child/child_process.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 | « chrome/service/service_process.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_process.cc
diff --git a/content/child/child_process.cc b/content/child/child_process.cc
index c772eb35c966566cf8c85220d757d24e1c7a3263..d3f557e1bdbd3c67892ac330101d6f8145d1cce6 100644
--- a/content/child/child_process.cc
+++ b/content/child/child_process.cc
@@ -54,8 +54,9 @@ ChildProcess::ChildProcess(
// test process.
if (!base::TaskScheduler::GetInstance()) {
if (task_scheduler_init_params) {
- base::TaskScheduler::CreateAndSetDefaultTaskScheduler(
- task_scheduler_name, *task_scheduler_init_params.get());
+ base::TaskScheduler::Create(task_scheduler_name);
+ base::TaskScheduler::GetInstance()->Start(
+ *task_scheduler_init_params.get());
} else {
base::TaskScheduler::CreateAndStartWithDefaultParams(task_scheduler_name);
}
« no previous file with comments | « chrome/service/service_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698