Index: chrome/browser/android/search_geolocation/search_geolocation_service_unittest.cc |
diff --git a/chrome/browser/android/search_geolocation/search_geolocation_service_unittest.cc b/chrome/browser/android/search_geolocation/search_geolocation_service_unittest.cc |
index 260a98eaa954358a640a43f584fece04c5db30cf..a74026eba5ce0d6d8f16bbc0c53479b6cbf791e2 100644 |
--- a/chrome/browser/android/search_geolocation/search_geolocation_service_unittest.cc |
+++ b/chrome/browser/android/search_geolocation/search_geolocation_service_unittest.cc |
@@ -195,7 +195,7 @@ TEST_F(SearchGeolocationServiceTest, UseDSEGeolocationSetting) { |
// False if the content setting is enterprise ask. |
profile()->GetTestingPrefService()->SetManagedPref( |
prefs::kManagedDefaultGeolocationSetting, |
- new base::Value(CONTENT_SETTING_ASK)); |
+ base::MakeUnique<base::Value>(CONTENT_SETTING_ASK)); |
EXPECT_FALSE(GetService()->UseDSEGeolocationSetting(ToOrigin(kGoogleURL))); |
} |
@@ -245,7 +245,7 @@ TEST_F(SearchGeolocationServiceTest, SetDSEGeolocationSetting) { |
GetService()->SetDSEGeolocationSetting(true); |
profile()->GetTestingPrefService()->SetManagedPref( |
prefs::kManagedDefaultGeolocationSetting, |
- new base::Value(CONTENT_SETTING_ASK)); |
+ base::MakeUnique<base::Value>(CONTENT_SETTING_ASK)); |
EXPECT_TRUE(GetService()->GetDSEGeolocationSetting()); |
GetService()->SetDSEGeolocationSetting(false); |
EXPECT_TRUE(GetService()->GetDSEGeolocationSetting()); |