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

Unified Diff: components/task_scheduler_util/initialization_util.cc

Issue 2531883002: TaskScheduler: Set the IO allowed bit in TaskTracker::RunTask(). (Closed)
Patch Set: rebase 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
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | no next file » | 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 967acef935f784591bcebcbbd17b1c2e6693c5ea..6c8584f46806b8333c99d34eb249af686a2b02e7 100644
--- a/components/task_scheduler_util/initialization_util.cc
+++ b/components/task_scheduler_util/initialization_util.cc
@@ -124,17 +124,15 @@ std::vector<base::SchedulerWorkerPoolParams>
VariationsParamsToBrowserSchedulerWorkerPoolParams(
const std::map<std::string, std::string>& variation_params) {
using ThreadPriority = base::ThreadPriority;
- using IORestriction = base::SchedulerWorkerPoolParams::IORestriction;
struct SchedulerWorkerPoolPredefinedParams {
const char* name;
ThreadPriority priority_hint;
- IORestriction io_restriction;
};
static const SchedulerWorkerPoolPredefinedParams kAllPredefinedParams[] = {
- {"Background", ThreadPriority::BACKGROUND, IORestriction::DISALLOWED},
- {"BackgroundFileIO", ThreadPriority::BACKGROUND, IORestriction::ALLOWED},
- {"Foreground", ThreadPriority::NORMAL, IORestriction::DISALLOWED},
- {"ForegroundFileIO", ThreadPriority::NORMAL, IORestriction::ALLOWED},
+ {"Background", ThreadPriority::BACKGROUND},
+ {"BackgroundFileIO", ThreadPriority::BACKGROUND},
+ {"Foreground", ThreadPriority::NORMAL},
+ {"ForegroundFileIO", ThreadPriority::NORMAL},
};
static_assert(arraysize(kAllPredefinedParams) == WORKER_POOL_COUNT,
"Mismatched Worker Pool Types and Predefined Parameters");
@@ -159,7 +157,6 @@ VariationsParamsToBrowserSchedulerWorkerPoolParams(
params_vector.emplace_back(predefined_params.name,
predefined_params.priority_hint,
- predefined_params.io_restriction,
variation_values.standby_thread_policy,
variation_values.threads,
variation_values.detach_period);
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698