Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(759)

Unified Diff: components/user_prefs/tracked/pref_hash_filter.cc

Issue 2743463002: WIP: Pref service user prefs. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/user_prefs/tracked/pref_hash_filter.cc
diff --git a/components/user_prefs/tracked/pref_hash_filter.cc b/components/user_prefs/tracked/pref_hash_filter.cc
index 8056b7490d603ade79454782198c7bf81aecc8c0..f697fb85ef171aee155580c0209e94b578cc5673 100644
--- a/components/user_prefs/tracked/pref_hash_filter.cc
+++ b/components/user_prefs/tracked/pref_hash_filter.cc
@@ -78,7 +78,7 @@ PrefHashFilter::PrefHashFilter(
std::unique_ptr<TrackedPreference> tracked_preference;
switch (metadata.strategy) {
- case TRACKING_STRATEGY_ATOMIC:
+ case PrefTrackingStrategy::ATOMIC:
tracked_preference.reset(
new TrackedAtomicPreference(metadata.name,
metadata.reporting_id,
@@ -87,7 +87,7 @@ PrefHashFilter::PrefHashFilter(
metadata.value_type,
delegate));
break;
- case TRACKING_STRATEGY_SPLIT:
+ case PrefTrackingStrategy::SPLIT:
tracked_preference.reset(
new TrackedSplitPreference(metadata.name,
metadata.reporting_id,
@@ -256,6 +256,7 @@ void PrefHashFilter::FinalizeFilterOnLoad(
if (!on_reset_on_load_.is_null())
on_reset_on_load_.Run();
}
+ on_reset_on_load_.Reset();
UMA_HISTOGRAM_TIMES("Settings.FilterOnLoadTime",
base::TimeTicks::Now() - checkpoint);
« no previous file with comments | « components/user_prefs/tracked/pref_hash_filter.h ('k') | components/user_prefs/tracked/pref_hash_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698