| Index: chrome/browser/extensions/activity_log/activity_log_task_runner.cc
|
| diff --git a/chrome/browser/extensions/activity_log/activity_log_task_runner.cc b/chrome/browser/extensions/activity_log/activity_log_task_runner.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0606f3c39d8bc7b954a18fa940adf91fc9ff423c
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/activity_log/activity_log_task_runner.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/extensions/activity_log/activity_log_task_runner.h"
|
| +
|
| +#include "base/sequenced_task_runner.h"
|
| +#include "base/task_scheduler/lazy_task_runner.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +const scoped_refptr<base::TaskRunner> GetActivityLogTaskRunner() {
|
| + static base::LazySequencedTaskRunner task_runner =
|
| + LAZY_SEQUENCED_TASK_RUNNER_INITIALIZER(
|
| + base::TaskTraits({base::MayBlock(), base::WithBaseSyncPrimitives(),
|
| + base::TaskPriority::BACKGROUND}));
|
| + return task_runner.Get();
|
| +}
|
| +
|
| +} // namespace extensions
|
|
|