| Index: chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
|
| diff --git a/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc b/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
|
| index a47adff8bd4ad9abffa325ed5d358c6a163078f1..440c9902589b25c9755fcf2b40c3ac1ddc54e1fb 100644
|
| --- a/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
|
| +++ b/chrome/browser/sync/invalidations/invalidator_storage_unittest.cc
|
| @@ -61,7 +61,7 @@ class InvalidatorStorageTest : public testing::Test {
|
| // Set invalidation states for various keys and verify that they are written and
|
| // read back correctly.
|
| TEST_F(InvalidatorStorageTest, SetMaxVersionAndPayload) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
|
|
| InvalidationStateMap expected_states;
|
| EXPECT_EQ(expected_states, storage.GetAllInvalidationStates());
|
| @@ -88,7 +88,7 @@ TEST_F(InvalidatorStorageTest, SetMaxVersionAndPayload) {
|
|
|
| // Forgetting an entry should cause that entry to be deleted.
|
| TEST_F(InvalidatorStorageTest, Forget) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
| EXPECT_TRUE(storage.GetAllInvalidationStates().empty());
|
|
|
| InvalidationStateMap expected_states;
|
| @@ -110,7 +110,7 @@ TEST_F(InvalidatorStorageTest, Forget) {
|
| // Clearing the storage should erase all version map entries, bootstrap data,
|
| // and the client ID.
|
| TEST_F(InvalidatorStorageTest, Clear) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
| EXPECT_TRUE(storage.GetAllInvalidationStates().empty());
|
| EXPECT_TRUE(storage.GetBootstrapData().empty());
|
| EXPECT_TRUE(storage.GetInvalidatorClientId().empty());
|
| @@ -388,7 +388,7 @@ TEST_F(InvalidatorStorageTest, MigrateLegacyPreferences) {
|
| legacy_dict->SetString(base::IntToString(syncer::BOOKMARKS), "32");
|
| legacy_dict->SetString(base::IntToString(syncer::PREFERENCES), "54");
|
| pref_service_.SetUserPref(prefs::kSyncMaxInvalidationVersions, legacy_dict);
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
|
|
| // Legacy pref should be cleared.
|
| const base::DictionaryValue* dict =
|
| @@ -408,7 +408,7 @@ TEST_F(InvalidatorStorageTest, MigrateLegacyPreferences) {
|
| }
|
|
|
| TEST_F(InvalidatorStorageTest, SetGetNotifierClientId) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
| const std::string client_id("fK6eDzAIuKqx9A4+93bljg==");
|
|
|
| storage.SetInvalidatorClientId(client_id);
|
| @@ -416,7 +416,7 @@ TEST_F(InvalidatorStorageTest, SetGetNotifierClientId) {
|
| }
|
|
|
| TEST_F(InvalidatorStorageTest, SetGetBootstrapData) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
| const std::string mess("n\0tK\0\0l\344", 8);
|
| ASSERT_FALSE(IsStringUTF8(mess));
|
|
|
| @@ -427,7 +427,7 @@ TEST_F(InvalidatorStorageTest, SetGetBootstrapData) {
|
| // Test that we correctly generate ack handles, acknowledge them, and persist
|
| // them.
|
| TEST_F(InvalidatorStorageTest, GenerateAckHandlesAndAcknowledge) {
|
| - InvalidatorStorage storage(&pref_service_);
|
| + InvalidatorStorage storage(&pref_service_, pref_service_.registry());
|
| syncer::ObjectIdSet ids;
|
| InvalidationStateMap state_map;
|
| syncer::AckHandleMap ack_handle_map;
|
|
|