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

Unified Diff: components/policy/core/common/mac_util.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/mac_util.cc
diff --git a/components/policy/core/common/mac_util.cc b/components/policy/core/common/mac_util.cc
index 16606905ea834cc49903db8cbe7b9001fbc2fbef..df1054e1be09015dd23c0fe464620ae190e9e0a6 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -64,8 +64,7 @@ scoped_ptr<base::Value> PropertyToValue(CFPropertyListRef property) {
} else {
int int_value = 0;
if (CFNumberGetValue(number, kCFNumberIntType, &int_value)) {
- return scoped_ptr<base::Value>(
- base::Value::CreateIntegerValue(int_value));
+ return scoped_ptr<base::Value>(new base::FundamentalValue(int_value));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698