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

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

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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..a47dd4ed42bc5732f023ee9372b8d939e9b56e10 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -49,7 +49,7 @@ 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(
+ return std::unique_ptr<base::Value>(new base::Value(
static_cast<bool>(CFBooleanGetValue(boolean))));
}
@@ -60,13 +60,13 @@ std::unique_ptr<base::Value> PropertyToValue(CFPropertyListRef property) {
double double_value = 0.0;
if (CFNumberGetValue(number, kCFNumberDoubleType, &double_value)) {
return std::unique_ptr<base::Value>(
- new base::FundamentalValue(double_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));
+ new base::Value(int_value));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698