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

Unified Diff: base/prefs/pref_service.cc

Issue 24533002: Added the AutomaticProfileResetter service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: base/prefs/pref_service.cc
diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc
index 046af915b33c832d6da5a7588e930c49946cccc8..8c1183f052ba3a1bd9b9e6894f448b7363ef342c 100644
--- a/base/prefs/pref_service.cc
+++ b/base/prefs/pref_service.cc
@@ -189,6 +189,19 @@ base::DictionaryValue* PrefService::GetPreferenceValues() const {
return out;
}
+base::DictionaryValue* PrefService::GetPreferenceValuesWithoutPathExpansion()
+ const {
+ DCHECK(CalledOnValidThread());
+ base::DictionaryValue* out = new base::DictionaryValue;
+ PrefRegistry::const_iterator i = pref_registry_->begin();
+ for (; i != pref_registry_->end(); ++i) {
+ const base::Value* value = GetPreferenceValue(i->first);
+ DCHECK(value);
+ out->SetWithoutPathExpansion(i->first, value->DeepCopy());
+ }
+ return out;
+}
+
const PrefService::Preference* PrefService::FindPreference(
const char* pref_name) const {
DCHECK(CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698