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

Unified Diff: base/prefs/pref_service.cc

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: Merge LKGR and address review nit. 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.cc
diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc
index 67ab898459459bb198cd473711f4183699143bed..b1f4f3fb16c6589e3a859314faaba63c41982a57 100644
--- a/base/prefs/pref_service.cc
+++ b/base/prefs/pref_service.cc
@@ -273,6 +273,12 @@ const base::Value* PrefService::GetUserPrefValue(const char* path) const {
return value;
}
+void PrefService::SetDefaultPrefValue(const char* path,
+ base::Value* value) {
+ DCHECK(CalledOnValidThread());
+ pref_registry_->SetDefaultPrefValue(path, value);
+}
+
const base::Value* PrefService::GetDefaultPrefValue(const char* path) const {
DCHECK(CalledOnValidThread());
// Lookup the preference in the default store.
« no previous file with comments | « base/prefs/pref_service.h ('k') | chrome/browser/content_settings/content_settings_pref_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698