Index: chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc |
diff --git a/chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc b/chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc |
index 8a81b285a3a04231397c50a61e4ba22e6a36ba29..c5e923c2c2e69064314b230d255c4f8c41c67db2 100644 |
--- a/chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc |
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator_unittest.cc |
@@ -159,17 +159,17 @@ TEST_F(ChromeComponentUpdaterConfiguratorTest, TestEnabledComponentUpdates) { |
// Tests the component updates are disabled. |
pref_service()->SetManagedPref("component_updates.component_updates_enabled", |
- new base::Value(false)); |
+ base::MakeUnique<base::Value>(false)); |
EXPECT_FALSE(config->EnabledComponentUpdates()); |
// Tests the component updates are enabled. |
pref_service()->SetManagedPref("component_updates.component_updates_enabled", |
- new base::Value(true)); |
+ base::MakeUnique<base::Value>(true)); |
EXPECT_TRUE(config->EnabledComponentUpdates()); |
// Sanity check setting the preference back to |false| and then removing it. |
pref_service()->SetManagedPref("component_updates.component_updates_enabled", |
- new base::Value(false)); |
+ base::MakeUnique<base::Value>(false)); |
EXPECT_FALSE(config->EnabledComponentUpdates()); |
pref_service()->RemoveManagedPref( |
"component_updates.component_updates_enabled"); |