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

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: Final touches on unittests. 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 198159848ecab3e92e3303ef1703ab9c3840859a..b8606f984f1b1fad69185642193953217d50deba 100644
--- a/base/prefs/pref_service.cc
+++ b/base/prefs/pref_service.cc
@@ -184,6 +184,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