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

Unified Diff: components/policy/core/common/mac_util_unittest.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_unittest.cc
diff --git a/components/policy/core/common/mac_util_unittest.cc b/components/policy/core/common/mac_util_unittest.cc
index b96e298b41f377e597fbfd4019b4f7140669245a..c25610b0a32ed14fb01f6bc13039e393df317d5f 100644
--- a/components/policy/core/common/mac_util_unittest.cc
+++ b/components/policy/core/common/mac_util_unittest.cc
@@ -9,6 +9,7 @@
#include <memory>
#include "base/mac/scoped_cftyperef.h"
+#include "base/memory/ptr_util.h"
#include "base/values.h"
#include "components/policy/core/common/policy_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -19,7 +20,7 @@ TEST(PolicyMacUtilTest, PropertyToValue) {
base::DictionaryValue root;
// base::Value::Type::NONE
- root.Set("null", base::Value::CreateNullValue());
+ root.Set("null", base::MakeUnique<base::Value>());
// base::Value::Type::BOOLEAN
root.SetBoolean("false", false);
« no previous file with comments | « components/policy/core/common/mac_util.cc ('k') | components/policy/core/common/policy_loader_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698