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

Unified Diff: base/prefs/pref_registry_simple.cc

Issue 131503015: Get rid of some uses of base::Create*Value (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 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
« no previous file with comments | « no previous file | 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_registry_simple.cc
diff --git a/base/prefs/pref_registry_simple.cc b/base/prefs/pref_registry_simple.cc
index c068b4ba43a6a027ce71a30f7d7e245de3844948..7453016a272f9d39b5b88376a7a4975a2d9e46d7 100644
--- a/base/prefs/pref_registry_simple.cc
+++ b/base/prefs/pref_registry_simple.cc
@@ -16,29 +16,28 @@ PrefRegistrySimple::~PrefRegistrySimple() {
void PrefRegistrySimple::RegisterBooleanPref(const char* path,
bool default_value) {
- RegisterPreference(path, base::Value::CreateBooleanValue(default_value));
+ RegisterPreference(path, new base::FundamentalValue(default_value));
}
void PrefRegistrySimple::RegisterIntegerPref(const char* path,
int default_value) {
- RegisterPreference(path, base::Value::CreateIntegerValue(default_value));
+ RegisterPreference(path, new base::FundamentalValue(default_value));
}
void PrefRegistrySimple::RegisterDoublePref(const char* path,
double default_value) {
- RegisterPreference(path, base::Value::CreateDoubleValue(default_value));
+ RegisterPreference(path, new base::FundamentalValue(default_value));
}
void PrefRegistrySimple::RegisterStringPref(const char* path,
const std::string& default_value) {
- RegisterPreference(path, base::Value::CreateStringValue(default_value));
+ RegisterPreference(path, new base::StringValue(default_value));
}
void PrefRegistrySimple::RegisterFilePathPref(
const char* path,
const base::FilePath& default_value) {
- RegisterPreference(path,
- base::Value::CreateStringValue(default_value.value()));
+ RegisterPreference(path, new base::StringValue(default_value.value()));
}
void PrefRegistrySimple::RegisterListPref(const char* path) {
@@ -63,5 +62,5 @@ void PrefRegistrySimple::RegisterDictionaryPref(
void PrefRegistrySimple::RegisterInt64Pref(const char* path,
int64 default_value) {
RegisterPreference(
- path, base::Value::CreateStringValue(base::Int64ToString(default_value)));
+ path, new base::StringValue(base::Int64ToString(default_value)));
}
« no previous file with comments | « no previous file | base/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698