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 2c477e0031ba2983dfc880e0e02c876c80c474c0..dd06e1ee49043791fd11c002858a1c1ab96c332b 100644 |
--- a/components/policy/core/common/mac_util.cc |
+++ b/components/policy/core/common/mac_util.cc |
@@ -49,8 +49,8 @@ std::unique_ptr<base::Value> PropertyToValue(CFPropertyListRef property) { |
return base::Value::CreateNullValue(); |
if (CFBooleanRef boolean = CFCast<CFBooleanRef>(property)) { |
- return std::unique_ptr<base::Value>(new base::FundamentalValue( |
- static_cast<bool>(CFBooleanGetValue(boolean)))); |
+ return std::unique_ptr<base::Value>( |
+ new base::Value(static_cast<bool>(CFBooleanGetValue(boolean)))); |
} |
if (CFNumberRef number = CFCast<CFNumberRef>(property)) { |
@@ -59,14 +59,12 @@ std::unique_ptr<base::Value> PropertyToValue(CFPropertyListRef property) { |
if (CFNumberIsFloatType(number)) { |
double double_value = 0.0; |
if (CFNumberGetValue(number, kCFNumberDoubleType, &double_value)) { |
- return std::unique_ptr<base::Value>( |
- new base::FundamentalValue(double_value)); |
+ return std::unique_ptr<base::Value>(new base::Value(double_value)); |
} |
} else { |
int int_value = 0; |
if (CFNumberGetValue(number, kCFNumberIntType, &int_value)) { |
- return std::unique_ptr<base::Value>( |
- new base::FundamentalValue(int_value)); |
+ return std::unique_ptr<base::Value>(new base::Value(int_value)); |
} |
} |
} |