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

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

Issue 6240013: Make proxy settings one atomic dictionary in the PrefStores such that modifications are atomic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/out/Debug
Patch Set: Created 9 years, 11 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: chrome/browser/prefs/pref_service.cc
diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc
index 2ab04f89704f96059a3865a67e7bf74fe2f95917..3415f18b28de70fc246fd15d270c1f4a2b6e7b8f 100644
--- a/chrome/browser/prefs/pref_service.cc
+++ b/chrome/browser/prefs/pref_service.cc
@@ -240,10 +240,19 @@ void PrefService::RegisterListPref(const char* path) {
RegisterPreference(path, new ListValue());
}
+void PrefService::RegisterListPref(const char* path, ListValue* default_value) {
+ RegisterPreference(path, default_value);
+}
+
void PrefService::RegisterDictionaryPref(const char* path) {
RegisterPreference(path, new DictionaryValue());
}
+void PrefService::RegisterDictionaryPref(const char* path,
+ DictionaryValue* default_value) {
+ RegisterPreference(path, default_value);
+}
+
void PrefService::RegisterLocalizedBooleanPref(const char* path,
int locale_default_message_id) {
RegisterPreference(

Powered by Google App Engine
This is Rietveld 408576698