commit | c958045c9bab9367e0970613f0c84770dec93ecf | [log] [tgz] |
---|---|---|
author | Sami Kyostila <[email protected]> | Mon Jun 17 12:26:27 2019 |
committer | Commit Bot <[email protected]> | Mon Jun 17 12:26:27 2019 |
tree | 0666f05a8ff552ad2969292701d87b50d4081ae6 | |
parent | 41e3e5e73dca843cfeec21fb879bb9b92556e580 [diff] [blame] |
Always specify thread affinity for lazy task runner initialization Change all usages of lazy task runners specify the thread affinity for the task runner, since this will soon become mandatory. Note that aggregate trait initialization syntax isn't supported by these macros, because the preprocessor doesn't treat braces specially. This patch has no functional changes. [email protected] Bug: 968047 Change-Id: I2604c5fd18fb1972ea231a3ccc1f2cfe3a5adc76 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1645311 Commit-Queue: Sami Kyöstilä <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Cr-Commit-Position: refs/heads/master@{#669631}
diff --git a/chrome/browser/devtools/devtools_file_system_indexer.cc b/chrome/browser/devtools/devtools_file_system_indexer.cc index 0152dfb..96079b9 100644 --- a/chrome/browser/devtools/devtools_file_system_indexer.cc +++ b/chrome/browser/devtools/devtools_file_system_indexer.cc
@@ -43,7 +43,7 @@ base::SequencedTaskRunner* impl_task_runner() { constexpr base::TaskTraits kBlockingTraits = { - base::MayBlock(), base::TaskPriority::BEST_EFFORT}; + base::ThreadPool(), base::MayBlock(), base::TaskPriority::BEST_EFFORT}; static base::LazySequencedTaskRunner s_sequenced_task_task_runner = LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER(kBlockingTraits); return s_sequenced_task_task_runner.Get().get();