Index: components/prefs/pref_service_unittest.cc |
diff --git a/components/prefs/pref_service_unittest.cc b/components/prefs/pref_service_unittest.cc |
index 17bfda30640375b15071f2873580e0b33a9c2994..b64ddad95f3a75c909721a19bbf7e3a40ca462a2 100644 |
--- a/components/prefs/pref_service_unittest.cc |
+++ b/components/prefs/pref_service_unittest.cc |
@@ -315,8 +315,9 @@ TEST(PrefServiceTest, WriteablePrefStoreFlags) { |
for (size_t i = 0; i < arraysize(kRegistrationToWriteFlags); ++i) { |
RegistrationToWriteFlags entry = kRegistrationToWriteFlags[i]; |
- registry->RegisterDictionaryPref( |
- entry.pref_name, new base::DictionaryValue(), entry.registration_flags); |
+ registry->RegisterDictionaryPref(entry.pref_name, |
+ base::MakeUnique<base::DictionaryValue>(), |
+ entry.registration_flags); |
SCOPED_TRACE("Currently testing pref with name: " + |
std::string(entry.pref_name)); |