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

Unified Diff: components/task_scheduler_util/initialization_util.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
« no previous file with comments | « chrome/service/service_process.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/task_scheduler_util/initialization_util.cc
diff --git a/components/task_scheduler_util/initialization_util.cc b/components/task_scheduler_util/initialization_util.cc
index 8893d47dd86188c4426978a192a62992bc618c18..967acef935f784591bcebcbbd17b1c2e6693c5ea 100644
--- a/components/task_scheduler_util/initialization_util.cc
+++ b/components/task_scheduler_util/initialization_util.cc
@@ -194,7 +194,9 @@ void InitializeDefaultBrowserTaskScheduler() {
switches::kDisableBrowserTaskScheduler) &&
sequenced_worker_pool_param != variation_params.end() &&
sequenced_worker_pool_param->second == "true") {
- base::SequencedWorkerPool::RedirectToTaskSchedulerForProcess();
+ base::SequencedWorkerPool::EnableWithRedirectionToTaskSchedulerForProcess();
+ } else {
+ base::SequencedWorkerPool::EnableForProcess();
}
}
« no previous file with comments | « chrome/service/service_process.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698