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

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

Issue 383263005: Remove more CreateIntegerValue calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/SetBoolean/SetInteger 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..6a8b19a3202a5fe678ded6669cbbefcbce616745 100644
--- a/components/policy/core/common/preg_parser_win.cc
+++ b/components/policy/core/common/preg_parser_win.cc
@@ -128,7 +128,7 @@ bool DecodePRegValue(uint32 type,
val = base::NetToHost32(val);
else
val = base::ByteSwapToLE32(val);
- value->reset(base::Value::CreateIntegerValue(static_cast<int>(val)));
+ value->reset(new base::FundamentalValue(static_cast<int>(val)));
return true;
} else {
LOG(ERROR) << "Bad data size " << data.size();
« no previous file with comments | « components/policy/core/common/policy_service_impl_unittest.cc ('k') | components/policy/core/common/registry_dict_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698