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

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

Issue 390233003: Decrement CreateDoubleValue count (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/mac_util.cc
diff --git a/components/policy/core/common/mac_util.cc b/components/policy/core/common/mac_util.cc
index b1bea9db9bcfd490355c088ad53b753c81553c95..d8f4693c032f3f2c45bcbbb4ce2fcae86a8040f7 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -59,7 +59,7 @@ scoped_ptr<base::Value> PropertyToValue(CFPropertyListRef property) {
double double_value = 0.0;
if (CFNumberGetValue(number, kCFNumberDoubleType, &double_value)) {
return scoped_ptr<base::Value>(
- base::Value::CreateDoubleValue(double_value));
+ new base::FundamentalValue(double_value));
}
} else {
int int_value = 0;

Powered by Google App Engine
This is Rietveld 408576698