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

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

Issue 383263005: Remove more CreateIntegerValue calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile Created 6 years, 5 months 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_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:

Powered by Google App Engine
This is Rietveld 408576698