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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2629583003: Remove TaskTraits::with_file_io(). (Closed)
Patch Set: Created 3 years, 11 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 | « components/task_scheduler_util/browser/initialization.cc ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 916302e9ab085ab1c95dbd45a1e7b13ea19e82d3..eb0a4dacee6227ceb1ebc19be3701f338fa01b3c 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -463,7 +463,7 @@ GetDefaultSchedulerWorkerPoolParams() {
size_t DefaultBrowserWorkerPoolIndexForTraits(const base::TaskTraits& traits) {
const bool is_background =
traits.priority() == base::TaskPriority::BACKGROUND;
- if (traits.with_file_io())
+ if (traits.may_block() || traits.with_base_sync_primitives())
return is_background ? BACKGROUND_FILE_IO : FOREGROUND_FILE_IO;
return is_background ? BACKGROUND : FOREGROUND;
« no previous file with comments | « components/task_scheduler_util/browser/initialization.cc ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698