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()); |