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

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

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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 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));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698