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

Unified Diff: chrome/service/service_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 | « base/threading/sequenced_worker_pool_unittest.cc ('k') | content/child/child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process.cc
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index 117771ff7c23e86d00201d9744b0982ca197ba39..b6b78f0295346fe51aa2cac0a079feb6748cc67d 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -172,8 +172,8 @@ bool ServiceProcess::Initialize(base::MessageLoopForUI* message_loop,
constexpr base::TimeDelta kSuggestedReclaimTime =
base::TimeDelta::FromSeconds(30);
- base::TaskScheduler::CreateAndSetDefaultTaskScheduler(
- "CloudPrintServiceProcess",
+ base::TaskScheduler::Create("CloudPrintServiceProcess");
+ base::TaskScheduler::GetInstance()->Start(
{{StandbyThreadPolicy::LAZY, kMaxBackgroundThreads,
kSuggestedReclaimTime},
{StandbyThreadPolicy::LAZY, kMaxBackgroundBlockingThreads,
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | content/child/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698