| Index: services/preferences/public/cpp/pref_service_main.cc
|
| diff --git a/services/preferences/public/cpp/pref_service_main.cc b/services/preferences/public/cpp/pref_service_main.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4c92c5306059515fd11268c9ca8ceff6d9e6ecd
|
| --- /dev/null
|
| +++ b/services/preferences/public/cpp/pref_service_main.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 "services/preferences/public/cpp/pref_service_main.h"
|
| +
|
| +#include "base/threading/sequenced_worker_pool.h"
|
| +#include "services/preferences/pref_store_manager_impl.h"
|
| +#include "services/service_manager/public/cpp/service.h"
|
| +
|
| +namespace prefs {
|
| +
|
| +std::unique_ptr<service_manager::Service> CreatePrefService(
|
| + std::set<PrefValueStore::PrefStoreType> expected_pref_stores,
|
| + scoped_refptr<base::SequencedWorkerPool> worker_pool) {
|
| + return base::MakeUnique<PrefStoreManagerImpl>(expected_pref_stores,
|
| + std::move(worker_pool));
|
| +}
|
| +
|
| +} // namespace prefs
|
|
|