// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ #include <stdint.h> #include <string_view> #include "base/functional/callback.h" #include "build/chromeos_buildflags.h" #include "components/prefs/pref_registry_simple.h" // TODO(tfarina): Change this namespace to pref_registry. namespace user_prefs { // A PrefRegistry for syncable prefs. // // Classes or components that want to register such preferences should // define a static function named RegisterUserPrefs that takes a // PrefRegistrySyncable*, and the top-level application using the // class or embedding the component should call this function at an // appropriate time before the PrefService for these preferences is // constructed. See e.g. chrome/browser/prefs/browser_prefs.cc which // does this for Chrome. // // TODO(raymes): This class only exists to support SyncableRegistrationCallback // logic which is only required to support pref registration after the // PrefService has been created which is only used by tests. We can remove this // entire class and those tests with some work. class PrefRegistrySyncable : public PrefRegistrySimple { … }; } // namespace user_prefs #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_