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

Unified Diff: components/task_scheduler_util/initialization/browser_util.cc

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)
Patch Set: Remove Content Dependency on components/task_scheduler_util Created 4 years 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: components/task_scheduler_util/initialization/browser_util.cc
diff --git a/components/task_scheduler_util/initialization/browser_util.cc b/components/task_scheduler_util/initialization/browser_util.cc
index e9b7a535c1cf0cb285b04fc72d32ea7cc18da24f..4e331ad1a3d1ba5823cdc56995cc903b21b9cd4d 100644
--- a/components/task_scheduler_util/initialization/browser_util.cc
+++ b/components/task_scheduler_util/initialization/browser_util.cc
@@ -99,7 +99,7 @@ GetDefaultBrowserSchedulerWorkerPoolParams() {
sizeof(config.background.standby_thread_policy);
static_assert(kSizeAssignedFields == sizeof(config.background),
"Not all fields were assigned");
-#if defined(OS_ANDROID) || defined(OS_IOS)
+#if defined(OS_IOS)
config.background.standby_thread_policy = StandbyThreadPolicy::ONE;
config.background.threads =
base::RecommendedMaxNumberOfThreadsInPool(2, 8, 0.1, 0);
@@ -120,25 +120,7 @@ GetDefaultBrowserSchedulerWorkerPoolParams() {
base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.3, 0);
config.foreground_file_io.detach_period = base::TimeDelta::FromSeconds(30);
#else
- config.background.standby_thread_policy = StandbyThreadPolicy::ONE;
- config.background.threads =
- base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.1, 0);
- config.background.detach_period = base::TimeDelta::FromSeconds(30);
-
- config.background_file_io.standby_thread_policy = StandbyThreadPolicy::ONE;
- config.background_file_io.threads =
- base::RecommendedMaxNumberOfThreadsInPool(3, 8, 0.1, 0);
- config.background_file_io.detach_period = base::TimeDelta::FromSeconds(30);
-
- config.foreground.standby_thread_policy = StandbyThreadPolicy::ONE;
- config.foreground.threads =
- base::RecommendedMaxNumberOfThreadsInPool(8, 32, 0.3, 0);
- config.foreground.detach_period = base::TimeDelta::FromSeconds(30);
-
- config.foreground_file_io.standby_thread_policy = StandbyThreadPolicy::ONE;
- config.foreground_file_io.threads =
- base::RecommendedMaxNumberOfThreadsInPool(8, 32, 0.3, 0);
- config.foreground_file_io.detach_period = base::TimeDelta::FromSeconds(30);
+ NOTREACHED() << "No default configuration available for this platform.";
#endif
return BrowserWorkerPoolConfigurationToSchedulerWorkerPoolParams(config);
}

Powered by Google App Engine
This is Rietveld 408576698