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

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

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad rebase 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/preg_parser_win.cc
diff --git a/components/policy/core/common/preg_parser_win.cc b/components/policy/core/common/preg_parser_win.cc
index 6a8b19a3202a5fe678ded6669cbbefcbce616745..16fc0becb31ff205d1e7c27c3aedb9a110ce6bc2 100644
--- a/components/policy/core/common/preg_parser_win.cc
+++ b/components/policy/core/common/preg_parser_win.cc
@@ -118,7 +118,7 @@ bool DecodePRegValue(uint32 type,
switch (type) {
case REG_SZ:
case REG_EXPAND_SZ:
- value->reset(base::Value::CreateStringValue(DecodePRegStringValue(data)));
+ value->reset(new base::StringValue(DecodePRegStringValue(data)));
return true;
case REG_DWORD_LITTLE_ENDIAN:
case REG_DWORD_BIG_ENDIAN:

Powered by Google App Engine
This is Rietveld 408576698