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

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

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.h
diff --git a/chrome/browser/prefs/pref_service.h b/chrome/browser/prefs/pref_service.h
index 24b08d27f93ef346a1e8c0fb0dbe7686d247d0a9..b932a0bda7b8a194471838756a15595e18fc6c40 100644
--- a/chrome/browser/prefs/pref_service.h
+++ b/chrome/browser/prefs/pref_service.h
@@ -147,6 +147,9 @@ class PrefService : public base::NonThreadSafe {
void RegisterFilePathPref(const char* path, const FilePath& default_value);
void RegisterListPref(const char* path);
void RegisterDictionaryPref(const char* path);
+ // These take ownership of the default_value:
+ void RegisterListPref(const char* path, ListValue* default_value);
+ void RegisterDictionaryPref(const char* path, DictionaryValue* default_value);
// These variants use a default value from the locale dll instead.
void RegisterLocalizedBooleanPref(const char* path,

Powered by Google App Engine
This is Rietveld 408576698