Index: components/prefs/pref_member_unittest.cc |
diff --git a/components/prefs/pref_member_unittest.cc b/components/prefs/pref_member_unittest.cc |
index dc7ef161d5c1779b6d56a5aaa02f170634f7c7ab..bc75bc862ccb3f3516de1591db2fb0438ef4b895 100644 |
--- a/components/prefs/pref_member_unittest.cc |
+++ b/components/prefs/pref_member_unittest.cc |
@@ -6,6 +6,7 @@ |
#include "base/bind.h" |
#include "base/location.h" |
+#include "base/memory/ptr_util.h" |
#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
@@ -26,7 +27,8 @@ void RegisterTestPrefs(PrefRegistrySimple* registry) { |
registry->RegisterIntegerPref(kIntPref, 0); |
registry->RegisterDoublePref(kDoublePref, 0.0); |
registry->RegisterStringPref(kStringPref, "default"); |
- registry->RegisterListPref(kStringListPref, new base::ListValue()); |
+ registry->RegisterListPref(kStringListPref, |
+ base::MakeUnique<base::ListValue>()); |
} |
class GetPrefValueHelper |