| Index: components/policy/core/common/registry_dict.cc
|
| diff --git a/components/policy/core/common/registry_dict.cc b/components/policy/core/common/registry_dict.cc
|
| index ca7df29e72b4e40b3562257b7a102271dd6149db..86e682493ee9775d44a5ece4f033bc0675d5494c 100644
|
| --- a/components/policy/core/common/registry_dict.cc
|
| +++ b/components/policy/core/common/registry_dict.cc
|
| @@ -83,8 +83,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
|
| if (value.GetAsInteger(&int_value) ||
|
| (value.GetAsString(&string_value) &&
|
| base::StringToInt(string_value, &int_value))) {
|
| - return std::unique_ptr<base::Value>(
|
| - new base::FundamentalValue(int_value != 0));
|
| + return std::unique_ptr<base::Value>(new base::Value(int_value != 0));
|
| }
|
| break;
|
| }
|
| @@ -92,8 +91,7 @@ std::unique_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 std::unique_ptr<base::Value>(
|
| - new base::FundamentalValue(int_value));
|
| + return std::unique_ptr<base::Value>(new base::Value(int_value));
|
| }
|
| break;
|
| }
|
| @@ -103,8 +101,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
|
| if (value.GetAsDouble(&double_value) ||
|
| (value.GetAsString(&string_value) &&
|
| base::StringToDouble(string_value, &double_value))) {
|
| - return std::unique_ptr<base::Value>(
|
| - new base::FundamentalValue(double_value));
|
| + return std::unique_ptr<base::Value>(new base::Value(double_value));
|
| }
|
| break;
|
| }
|
| @@ -274,9 +271,8 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) {
|
| dword_value = base::NetToHost32(dword_value);
|
| else
|
| dword_value = base::ByteSwapToLE32(dword_value);
|
| - SetValue(name,
|
| - std::unique_ptr<base::Value>(new base::FundamentalValue(
|
| - static_cast<int>(dword_value))));
|
| + SetValue(name, std::unique_ptr<base::Value>(
|
| + new base::Value(static_cast<int>(dword_value))));
|
| continue;
|
| }
|
| case REG_NONE:
|
|
|