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

Unified Diff: device/bluetooth/bluetooth_task_manager_win.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 | « content/browser/browser_thread_impl.cc ('k') | ios/chrome/browser/net/image_fetcher_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_task_manager_win.cc
diff --git a/device/bluetooth/bluetooth_task_manager_win.cc b/device/bluetooth/bluetooth_task_manager_win.cc
index fdef7d85fda67599cc7b9c35e5b54c8209b93555..6597d5f7ec725debaeb3cb075a510a984517684d 100644
--- a/device/bluetooth/bluetooth_task_manager_win.cc
+++ b/device/bluetooth/bluetooth_task_manager_win.cc
@@ -257,8 +257,9 @@ void BluetoothTaskManagerWin::RemoveObserver(Observer* observer) {
void BluetoothTaskManagerWin::Initialize() {
DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
- worker_pool_ = new base::SequencedWorkerPool(kNumThreadsInWorkerPool,
- kBluetoothThreadName);
+ worker_pool_ = new base::SequencedWorkerPool(
+ kNumThreadsInWorkerPool, kBluetoothThreadName,
+ base::TaskPriority::USER_VISIBLE);
InitializeWithBluetoothTaskRunner(
worker_pool_->GetSequencedTaskRunnerWithShutdownBehavior(
worker_pool_->GetSequenceToken(),
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | ios/chrome/browser/net/image_fetcher_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698