Index: chrome/browser/prefs/profile_pref_store_manager_unittest.cc |
diff --git a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc |
index 45230ca0d11391be210cecf9bfff67f96303712e..49d38849602f9beb115998d9257b749e3bdcc2d1 100644 |
--- a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc |
+++ b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc |
@@ -7,6 +7,7 @@ |
#include <stddef.h> |
#include <memory> |
+#include <utility> |
#include <vector> |
#include "base/compiler_specific.h" |
@@ -319,10 +320,11 @@ TEST_F(ProfilePrefStoreManagerTest, ProtectValues) { |
} |
TEST_F(ProfilePrefStoreManagerTest, InitializePrefsFromMasterPrefs) { |
- base::DictionaryValue master_prefs; |
- master_prefs.Set(kTrackedAtomic, new base::StringValue(kFoobar)); |
- master_prefs.Set(kProtectedAtomic, new base::StringValue(kHelloWorld)); |
- EXPECT_TRUE(manager_->InitializePrefsFromMasterPrefs(master_prefs)); |
+ auto master_prefs = base::MakeUnique<base::DictionaryValue>(); |
+ master_prefs->Set(kTrackedAtomic, new base::StringValue(kFoobar)); |
+ master_prefs->Set(kProtectedAtomic, new base::StringValue(kHelloWorld)); |
+ EXPECT_TRUE( |
+ manager_->InitializePrefsFromMasterPrefs(std::move(master_prefs))); |
LoadExistingPrefs(); |