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

Unified Diff: chrome/service/service_process.cc

Issue 2445763002: Disallow posting tasks to SequencedWorkerPools by default. (Closed)
Patch Set: self-review Created 4 years, 1 month 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: chrome/service/service_process.cc
diff --git a/chrome/service/service_process.cc b/chrome/service/service_process.cc
index a29cc1db80d361012977c1c1e26707d148b9cd15..241af3f9066275ae62ce74d2098fe9464ee7eddc 100644
--- a/chrome/service/service_process.cc
+++ b/chrome/service/service_process.cc
@@ -157,6 +157,12 @@ bool ServiceProcess::Initialize(base::MessageLoopForUI* message_loop,
Teardown();
return false;
}
+
+ // Enable SequencedWorkerPool in the service process.
+ // TODO(fdoray): Remove this once the SequencedWorkerPool to TaskScheduler
+ // redirection experiment concludes https://crbug.com/622400.
+ base::SequencedWorkerPool::EnableForProcess();
+
blocking_pool_ = new base::SequencedWorkerPool(
3, "ServiceBlocking", base::TaskPriority::USER_VISIBLE);
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | components/task_scheduler_util/initialization_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698