Index: components/user_prefs/tracked/pref_hash_filter.h |
diff --git a/components/user_prefs/tracked/pref_hash_filter.h b/components/user_prefs/tracked/pref_hash_filter.h |
index 87c3f036ab12e359351fcef78cfd425fcbaf7e83..5a4098da932bb7ecec1b5150fb35c7e1978eed4f 100644 |
--- a/components/user_prefs/tracked/pref_hash_filter.h |
+++ b/components/user_prefs/tracked/pref_hash_filter.h |
@@ -21,6 +21,7 @@ |
#include "components/user_prefs/tracked/hash_store_contents.h" |
#include "components/user_prefs/tracked/interceptable_pref_filter.h" |
#include "components/user_prefs/tracked/tracked_preference.h" |
+#include "services/preferences/public/interfaces/preferences.mojom-shared.h" |
class PrefHashStore; |
class PrefService; |
@@ -45,22 +46,11 @@ class PrefRegistrySyncable; |
// are changed. |
class PrefHashFilter : public InterceptablePrefFilter { |
public: |
- enum EnforcementLevel { NO_ENFORCEMENT, ENFORCE_ON_LOAD }; |
- |
- enum PrefTrackingStrategy { |
- // Atomic preferences are tracked as a whole. |
- TRACKING_STRATEGY_ATOMIC, |
- // Split preferences are dictionaries for which each top-level entry is |
- // tracked independently. Note: preferences using this strategy must be kept |
- // in sync with TrackedSplitPreferences in histograms.xml. |
- TRACKING_STRATEGY_SPLIT, |
- }; |
- |
- enum ValueType { |
- VALUE_IMPERSONAL, |
- // The preference value may contain personal information. |
- VALUE_PERSONAL, |
- }; |
+ using EnforcementLevel = |
+ prefs::mojom::TrackedPreferenceMetadata_EnforcementLevel; |
+ using PrefTrackingStrategy = |
+ prefs::mojom::TrackedPreferenceMetadata_PrefTrackingStrategy; |
+ using ValueType = prefs::mojom::TrackedPreferenceMetadata_ValueType; |
struct TrackedPreferenceMetadata { |
size_t reporting_id; |
@@ -164,7 +154,7 @@ class PrefHashFilter : public InterceptablePrefFilter { |
const base::Optional<StoreContentsPair> external_validation_hash_store_pair_; |
// Invoked if a reset occurs in a call to FilterOnLoad. |
- const base::Closure on_reset_on_load_; |
+ base::Closure on_reset_on_load_; |
TrackedPreferencesMap tracked_paths_; |