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

Unified Diff: tools/gn/header_checker.cc

Issue 2077413009: Add TaskPriority as a parameter to SequencedWorkerPool in preparation for TaskScheduler experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2_hook
Patch Set: tweak comment Created 4 years, 5 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 | « services/shell/standalone/context.cc ('k') | tools/gn/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/header_checker.cc
diff --git a/tools/gn/header_checker.cc b/tools/gn/header_checker.cc
index 1002081a8375730a2798b4c33a781a4d95d61aae..35c367dd9b4c1ed58d81a42bd88e9876c5ecf60b 100644
--- a/tools/gn/header_checker.cc
+++ b/tools/gn/header_checker.cc
@@ -154,8 +154,8 @@ void HeaderChecker::RunCheckOverFiles(const FileMap& files, bool force_check) {
if (files.empty())
return;
- scoped_refptr<base::SequencedWorkerPool> pool(
- new base::SequencedWorkerPool(16, "HeaderChecker"));
+ scoped_refptr<base::SequencedWorkerPool> pool(new base::SequencedWorkerPool(
+ 16, "HeaderChecker", base::TaskPriority::USER_VISIBLE));
for (const auto& file : files) {
// Only check C-like source files (RC files also have includes).
SourceFileType type = GetSourceFileType(file.first);
« no previous file with comments | « services/shell/standalone/context.cc ('k') | tools/gn/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698