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

Unified Diff: ios/web/app/web_main_loop.mm

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 | « content/renderer/render_process_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/app/web_main_loop.mm
diff --git a/ios/web/app/web_main_loop.mm b/ios/web/app/web_main_loop.mm
index d155fbcc39773e4ccf914826ddb42a2feec7e7f3..b5e59fc9ca779d475b17c30a9ae99e45fa29a5ca 100644
--- a/ios/web/app/web_main_loop.mm
+++ b/ios/web/app/web_main_loop.mm
@@ -78,7 +78,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 | « content/renderer/render_process_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698