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

Unified Diff: base/prefs/pref_service.h

Issue 12315116: Add ability to change default pref values, and use in BrowserInstantController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Add a bit of documentation. Created 7 years, 10 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
« no previous file with comments | « base/prefs/pref_registry.cc ('k') | base/prefs/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_service.h
diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h
index d9cc8f5f1ce3fe65b792c4d0921476da3f083f48..786ca5ad7b0e95f5a747e6d82dfa5f8206310bdd 100644
--- a/base/prefs/pref_service.h
+++ b/base/prefs/pref_service.h
@@ -220,6 +220,9 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
// the preference is not set in the user pref store, returns NULL.
const base::Value* GetUserPrefValue(const char* path) const;
+ // Changes the default value for a preference. Takes ownership of |value|.
Mattias Nissler (ping if slow) 2013/02/28 15:46:26 nit: add a line saying that this will fire pref ch
+ void SetDefaultPrefValue(const char* path, base::Value* value);
+
// Returns the default value of the given preference. |path| must point to a
// registered preference. In that case, will never return NULL.
const base::Value* GetDefaultPrefValue(const char* path) const;
« no previous file with comments | « base/prefs/pref_registry.cc ('k') | base/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698