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 6343e550bf7cfa474f8da90a8741f8b478a05d12..1edcb1ea518bb37d2bb89b3bd952d846fbae0b39 100644 |
--- a/components/pref_registry/pref_registry_syncable.cc |
+++ b/components/pref_registry/pref_registry_syncable.cc |
@@ -40,7 +40,7 @@ base::Value* CreateLocaleDefaultValue(base::Value::Type type, |
case base::Value::TYPE_DOUBLE: { |
double val; |
base::StringToDouble(resource_string, &val); |
- return base::Value::CreateDoubleValue(val); |
+ return new base::FundamentalValue(val); |
} |
case base::Value::TYPE_STRING: { |
@@ -91,9 +91,8 @@ void PrefRegistrySyncable::RegisterIntegerPref(const char* path, |
void PrefRegistrySyncable::RegisterDoublePref(const char* path, |
double default_value, |
PrefSyncStatus sync_status) { |
- RegisterSyncablePreference(path, |
- base::Value::CreateDoubleValue(default_value), |
- sync_status); |
+ RegisterSyncablePreference( |
+ path, new base::FundamentalValue(default_value), sync_status); |
} |
void PrefRegistrySyncable::RegisterStringPref(const char* path, |