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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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.cc
diff --git a/components/policy/core/common/registry_dict.cc b/components/policy/core/common/registry_dict.cc
index 86e682493ee9775d44a5ece4f033bc0675d5494c..29c9df73133d7ec59a75f9a95b936961b18a4f2e 100644
--- a/components/policy/core/common/registry_dict.cc
+++ b/components/policy/core/common/registry_dict.cc
@@ -260,8 +260,8 @@ void RegistryDict::ReadRegistry(HKEY hive, const base::string16& root) {
switch (it.Type()) {
case REG_SZ:
case REG_EXPAND_SZ:
- SetValue(name, std::unique_ptr<base::Value>(new base::StringValue(
- base::UTF16ToUTF8(it.Value()))));
+ SetValue(name, std::unique_ptr<base::Value>(
+ new base::Value(base::UTF16ToUTF8(it.Value()))));
continue;
case REG_DWORD_LITTLE_ENDIAN:
case REG_DWORD_BIG_ENDIAN:

Powered by Google App Engine
This is Rietveld 408576698