| 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 c04e6c8154b1e4f9095848484e96214abbbd207c..4c197874357c0b41193c32e7813282ac52774902 100644
|
| --- a/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
|
| +++ b/chrome/browser/prefs/profile_pref_store_manager_unittest.cc
|
| @@ -280,8 +280,8 @@ TEST_F(ProfilePrefStoreManagerTest, ResetPrefHashStore) {
|
|
|
| // kTrackedAtomic is loaded as it appears on disk.
|
| ExpectStringValueEquals(kTrackedAtomic, kFoobar);
|
| - // If preference tracking is supported, the tampered value of kProtectedAtomic
|
| - // will be discarded at load time, leaving this preference undefined.
|
| + // If preference tracking is supported, kProtectedAtomic will be undefined
|
| + // because the value was discarded due to loss of the hash store contents.
|
| EXPECT_NE(ProfilePrefStoreManager::kPlatformSupportsPreferenceTracking,
|
| pref_store_->GetValue(kProtectedAtomic, NULL));
|
| EXPECT_EQ(ProfilePrefStoreManager::kPlatformSupportsPreferenceTracking,
|
| @@ -342,12 +342,10 @@ TEST_F(ProfilePrefStoreManagerTest, UpdateProfileHashStoreIfRequired) {
|
| }
|
|
|
| TEST_F(ProfilePrefStoreManagerTest, InitializePrefsFromMasterPrefs) {
|
| - scoped_ptr<base::DictionaryValue> master_prefs(
|
| - new base::DictionaryValue);
|
| - master_prefs->Set(kTrackedAtomic, new base::StringValue(kFoobar));
|
| - master_prefs->Set(kProtectedAtomic, new base::StringValue(kHelloWorld));
|
| - EXPECT_TRUE(
|
| - manager_->InitializePrefsFromMasterPrefs(*master_prefs));
|
| + 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));
|
|
|
| LoadExistingPrefs();
|
|
|
|
|