blob: cee2631a8a3e081433c17a6353288ac6fa2a6a2e [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(shell::Connector* connector,
PrefRegistry* registry);
} // namespace filesystem
#endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_