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

Unified Diff: components/policy/core/common/registry_dict.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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
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 0db631e5087c4ff4404849f3c1c410c67f617515..26fdbb3a737453730d759f9d136fbdc8b150693f 100644
--- a/components/policy/core/common/registry_dict.cc
+++ b/components/policy/core/common/registry_dict.cc
@@ -84,7 +84,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
(value.GetAsString(&string_value) &&
base::StringToInt(string_value, &int_value))) {
return std::unique_ptr<base::Value>(
- new base::FundamentalValue(int_value != 0));
+ new base::Value(int_value != 0));
}
break;
}
@@ -93,7 +93,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
if (value.GetAsString(&string_value) &&
base::StringToInt(string_value, &int_value)) {
return std::unique_ptr<base::Value>(
- new base::FundamentalValue(int_value));
+ new base::Value(int_value));
}
break;
}
@@ -104,7 +104,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
(value.GetAsString(&string_value) &&
base::StringToDouble(string_value, &double_value))) {
return std::unique_ptr<base::Value>(
- new base::FundamentalValue(double_value));
+ new base::Value(double_value));
}
break;
}
@@ -275,7 +275,7 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) {
else
dword_value = base::ByteSwapToLE32(dword_value);
SetValue(name,
- std::unique_ptr<base::Value>(new base::FundamentalValue(
+ std::unique_ptr<base::Value>(new base::Value(
static_cast<int>(dword_value))));
continue;
}
« no previous file with comments | « components/policy/core/common/preg_parser_unittest.cc ('k') | components/policy/core/common/registry_dict_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698