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

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

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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 04167e00a1e78877a85d70b411e20c210e1f254f..911453d517a402d5555de3146b1862442ee4fc0d 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -8,6 +8,7 @@
#include <utility>
#include "base/mac/foundation_util.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/sys_string_conversions.h"
#include "base/values.h"
@@ -46,7 +47,7 @@ void ArrayEntryToValue(const void* value, void* context) {
std::unique_ptr<base::Value> PropertyToValue(CFPropertyListRef property) {
if (CFCast<CFNullRef>(property))
- return base::Value::CreateNullValue();
+ return base::MakeUnique<base::Value>();
if (CFBooleanRef boolean = CFCast<CFBooleanRef>(property)) {
return std::unique_ptr<base::Value>(
« no previous file with comments | « components/policy/core/browser/android/policy_converter.cc ('k') | components/policy/core/common/mac_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698