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

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: tweaks 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 6c6248ce58cf90a7a328b000f1ccca4dbfccfa3e..d7230ac80cdff70850555462019505e7b035d6bc 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