Index: components/policy/core/common/registry_dict_win.cc |
diff --git a/components/policy/core/common/registry_dict_win.cc b/components/policy/core/common/registry_dict_win.cc |
index 2da49002b84867fa26de75f674f67a61baf9df18..9b50fb6c4a8a13738c4511179a38ad2716b0d967 100644 |
--- a/components/policy/core/common/registry_dict_win.cc |
+++ b/components/policy/core/common/registry_dict_win.cc |
@@ -79,8 +79,7 @@ scoped_ptr<base::Value> ConvertValue(const base::Value& value, |
// Integers may be string-encoded. |
if (value.GetAsString(&string_value) && |
base::StringToInt(string_value, &int_value)) { |
- return scoped_ptr<base::Value>( |
- base::Value::CreateIntegerValue(int_value)); |
+ return scoped_ptr<base::Value>(new base::FundamentalValue(int_value)); |
} |
break; |
} |
@@ -264,8 +263,8 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) { |
else |
dword_value = base::ByteSwapToLE32(dword_value); |
SetValue(name, |
- scoped_ptr<base::Value>( |
- base::Value::CreateIntegerValue(dword_value))); |
+ scoped_ptr<base::Value>(new base::FundamentalValue( |
+ static_cast<int>(dword_value)))); |
continue; |
} |
case REG_NONE: |