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

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: 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
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|.
+ 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;

Powered by Google App Engine
This is Rietveld 408576698