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

Unified Diff: chrome/browser/prefs/pref_hash_filter.cc

Issue 145053004: Let chrome_prefs handle Preferences initialization from master_preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang compile Created 6 years, 10 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
« no previous file with comments | « chrome/browser/prefs/pref_hash_filter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_hash_filter.cc
diff --git a/chrome/browser/prefs/pref_hash_filter.cc b/chrome/browser/prefs/pref_hash_filter.cc
index 1935708f9e22ca39964f2580d8dd402d1d39d9b9..503dcb62a3a81d091ae1229de9c704d82a69b8b7 100644
--- a/chrome/browser/prefs/pref_hash_filter.cc
+++ b/chrome/browser/prefs/pref_hash_filter.cc
@@ -63,16 +63,13 @@ PrefHashFilter::~PrefHashFilter() {
DCHECK(changed_paths_.empty());
}
-void PrefHashFilter::Initialize(PrefStore* pref_store) {
- UMA_HISTOGRAM_BOOLEAN(
- "Settings.TrackedPreferencesInitializedForUnloadedProfile", true);
-
+void PrefHashFilter::Initialize(const PrefStore& pref_store) {
for (TrackedPreferencesMap::const_iterator it = tracked_paths_.begin();
it != tracked_paths_.end(); ++it) {
const std::string& initialized_path = it->first;
const TrackedPreference* initialized_preference = it->second;
const base::Value* value = NULL;
- pref_store->GetValue(initialized_path, &value);
+ pref_store.GetValue(initialized_path, &value);
initialized_preference->OnNewValue(value);
}
}
« no previous file with comments | « chrome/browser/prefs/pref_hash_filter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698