Index: components/sync_preferences/pref_model_associator_unittest.cc |
diff --git a/components/sync_preferences/pref_model_associator_unittest.cc b/components/sync_preferences/pref_model_associator_unittest.cc |
index f189891710f0f9a3c0b4e0239960ff660124fb48..d9c4f17d4e689903417da9e6a5da18bc33c461ea 100644 |
--- a/components/sync_preferences/pref_model_associator_unittest.cc |
+++ b/components/sync_preferences/pref_model_associator_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <memory> |
#include "base/macros.h" |
+#include "base/memory/ptr_util.h" |
#include "base/memory/ref_counted.h" |
#include "base/values.h" |
#include "components/prefs/scoped_user_pref_update.h" |
@@ -133,7 +134,7 @@ TEST_F(ListPreferenceMergeTest, LocalEmpty) { |
} |
TEST_F(ListPreferenceMergeTest, ServerNull) { |
- std::unique_ptr<base::Value> null_value = base::Value::CreateNullValue(); |
+ auto null_value = base::MakeUnique<base::Value>(); |
{ |
ListPrefUpdate update(pref_service_.get(), kListPrefName); |
base::ListValue* local_list_value = update.Get(); |
@@ -255,7 +256,7 @@ TEST_F(DictionaryPreferenceMergeTest, LocalEmpty) { |
} |
TEST_F(DictionaryPreferenceMergeTest, ServerNull) { |
- std::unique_ptr<base::Value> null_value = base::Value::CreateNullValue(); |
+ auto null_value = base::MakeUnique<base::Value>(); |
{ |
DictionaryPrefUpdate update(pref_service_.get(), kDictionaryPrefName); |
base::DictionaryValue* local_dict_value = update.Get(); |