Index: chrome/browser/search_engines/template_url_service_unittest.cc |
diff --git a/chrome/browser/search_engines/template_url_service_unittest.cc b/chrome/browser/search_engines/template_url_service_unittest.cc |
index a255503755a61e2201c35905aa0ede7bdc35f74c..c3b8de661f0c6b8c009edbf0d440e4c34cd821b0 100644 |
--- a/chrome/browser/search_engines/template_url_service_unittest.cc |
+++ b/chrome/browser/search_engines/template_url_service_unittest.cc |
@@ -330,8 +330,9 @@ void TemplateURLServiceTest::SetOverriddenEngines() { |
auto* prefs = test_util()->profile()->GetTestingPrefService(); |
prefs->SetUserPref(prefs::kSearchProviderOverridesVersion, |
- new base::Value(1)); |
- prefs->SetUserPref(prefs::kSearchProviderOverrides, overrides_list.release()); |
+ base::MakeUnique<base::Value>(1)); |
+ prefs->SetUserPref(prefs::kSearchProviderOverrides, |
+ std::move(overrides_list)); |
} |
void TemplateURLServiceTest::VerifyObserverCount(int expected_changed_count) { |