#include "components/optimization_guide/core/feature_registry/settings_ui_registry.h"
#include "base/no_destructor.h"
#include "base/strings/string_util.h"
#include "components/optimization_guide/core/model_execution/feature_keys.h"
namespace optimization_guide {
SettingsUiMetadata::SettingsUiMetadata(
std::string name,
UserVisibleFeatureKey user_visible_feature_key,
EnterprisePolicyPref enterprise_policy)
: … { … }
SettingsUiMetadata::~SettingsUiMetadata() = default;
SettingsUiRegistry::SettingsUiRegistry() = default;
SettingsUiRegistry::~SettingsUiRegistry() = default;
SettingsUiRegistry& SettingsUiRegistry::GetInstance() { … }
void SettingsUiRegistry::Register(
std::unique_ptr<SettingsUiMetadata> new_metadata) { … }
const SettingsUiMetadata* SettingsUiRegistry::GetFeature(
UserVisibleFeatureKey feature) const { … }
void SettingsUiRegistry::ClearForTesting() { … }
}