#include "services/preferences/tracked/tracked_preference_helper.h"
#include "base/check.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_macros.h"
#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "services/preferences/public/cpp/tracked/tracked_preference_histogram_names.h"
ValueState;
TrackedPreferenceHelper::TrackedPreferenceHelper(
const std::string& pref_path,
size_t reporting_id,
size_t reporting_ids_count,
prefs::mojom::TrackedPreferenceMetadata::EnforcementLevel enforcement_level,
prefs::mojom::TrackedPreferenceMetadata::ValueType value_type)
: … { … }
TrackedPreferenceHelper::ResetAction TrackedPreferenceHelper::GetAction(
ValueState value_state) const { … }
bool TrackedPreferenceHelper::IsPersonal() const { … }
void TrackedPreferenceHelper::ReportValidationResult(
ValueState value_state,
std::string_view validation_type_suffix) const { … }
void TrackedPreferenceHelper::ReportAction(ResetAction reset_action) const { … }