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

Unified Diff: net/ssl/ssl_platform_key_task_runner.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: Created 4 years, 6 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
Index: net/ssl/ssl_platform_key_task_runner.cc
diff --git a/net/ssl/ssl_platform_key_task_runner.cc b/net/ssl/ssl_platform_key_task_runner.cc
index 7611d60454dccbef7f7ea8f1915e3c124511ebf8..04f9e726f8c3703e19e20d3e3d158d7203fa54d2 100644
--- a/net/ssl/ssl_platform_key_task_runner.cc
+++ b/net/ssl/ssl_platform_key_task_runner.cc
@@ -8,7 +8,8 @@
namespace net {
SSLPlatformKeyTaskRunner::SSLPlatformKeyTaskRunner() {
- worker_pool_ = new base::SequencedWorkerPool(1, "Platform Key Thread");
+ worker_pool_ = new base::SequencedWorkerPool(
+ 1, "Platform Key Thread", base::TaskPriority::USER_BLOCKING);
task_runner_ = worker_pool_->GetSequencedTaskRunnerWithShutdownBehavior(
worker_pool_->GetSequenceToken(),
base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);

Powered by Google App Engine
This is Rietveld 408576698