Index: components/pref_registry/pref_registry_syncable.cc |
diff --git a/components/pref_registry/pref_registry_syncable.cc b/components/pref_registry/pref_registry_syncable.cc |
index 18c26604bee973dcc77c56d353210da4a22d638d..6343e550bf7cfa474f8da90a8741f8b478a05d12 100644 |
--- a/components/pref_registry/pref_registry_syncable.cc |
+++ b/components/pref_registry/pref_registry_syncable.cc |
@@ -44,7 +44,7 @@ base::Value* CreateLocaleDefaultValue(base::Value::Type type, |
} |
case base::Value::TYPE_STRING: { |
- return base::Value::CreateStringValue(resource_string); |
+ return new base::StringValue(resource_string); |
} |
default: { |
@@ -99,19 +99,16 @@ void PrefRegistrySyncable::RegisterDoublePref(const char* path, |
void PrefRegistrySyncable::RegisterStringPref(const char* path, |
const std::string& default_value, |
PrefSyncStatus sync_status) { |
- RegisterSyncablePreference(path, |
- base::Value::CreateStringValue(default_value), |
- sync_status); |
+ RegisterSyncablePreference( |
+ path, new base::StringValue(default_value), sync_status); |
} |
void PrefRegistrySyncable::RegisterFilePathPref( |
const char* path, |
const base::FilePath& default_value, |
PrefSyncStatus sync_status) { |
- RegisterSyncablePreference(path, |
- base::Value::CreateStringValue( |
- default_value.value()), |
- sync_status); |
+ RegisterSyncablePreference( |
+ path, new base::StringValue(default_value.value()), sync_status); |
} |
void PrefRegistrySyncable::RegisterListPref(const char* path, |
@@ -187,7 +184,7 @@ void PrefRegistrySyncable::RegisterInt64Pref( |
PrefSyncStatus sync_status) { |
RegisterSyncablePreference( |
path, |
- base::Value::CreateStringValue(base::Int64ToString(default_value)), |
+ new base::StringValue(base::Int64ToString(default_value)), |
sync_status); |
} |
@@ -197,7 +194,7 @@ void PrefRegistrySyncable::RegisterUint64Pref( |
PrefSyncStatus sync_status) { |
RegisterSyncablePreference( |
path, |
- base::Value::CreateStringValue(base::Uint64ToString(default_value)), |
+ new base::StringValue(base::Uint64ToString(default_value)), |
sync_status); |
} |