OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/activity_log/activity_log_task_runner.h" |
| 6 |
| 7 #include "base/sequenced_task_runner.h" |
| 8 #include "base/task_scheduler/lazy_task_runner.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 const scoped_refptr<base::TaskRunner> GetActivityLogTaskRunner() { |
| 13 static base::LazySequencedTaskRunner task_runner = |
| 14 LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER( |
| 15 base::TaskTraits({base::MayBlock(), base::WithBaseSyncPrimitives(), |
| 16 base::TaskPriority::BACKGROUND})); |
| 17 return task_runner.Get(); |
| 18 } |
| 19 |
| 20 } // namespace extensions |
OLD | NEW |