blob: 86a2704da43e022ba4f4b3c7163dc3ceff339a9f [file] [log] [blame]
// Copyright 2016 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.
#ifndef COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#include <memory>
#include "components/prefs/pref_service.h"
namespace mojo {
class Connector;
}
class PrefRegistry;
namespace filesystem {
// This factory method creates a PrefService for the local process based on the
// preference registry passed in. This PrefService will synchronize with a JSON
// file in the mojo:filesystem.
std::unique_ptr<PrefService> CreatePrefService(
service_manager::Connector* connector,
PrefRegistry* registry);
} // namespace filesystem
#endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_