| Index: chrome/browser/sync/test_profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
|
| index 11bb5e3768be3a39d740b861349e059039ca1b53..dac67f27c57f78e04edc6169f3d1fe34cedc7608 100644
|
| --- a/chrome/browser/sync/test_profile_sync_service.cc
|
| +++ b/chrome/browser/sync/test_profile_sync_service.cc
|
| @@ -36,7 +36,6 @@ namespace browser_sync {
|
| SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
|
| Profile* profile,
|
| const base::WeakPtr<SyncPrefs>& sync_prefs,
|
| - const base::WeakPtr<invalidation::InvalidatorStorage>& invalidator_storage,
|
| syncer::TestIdFactory& id_factory,
|
| base::Closure& callback,
|
| bool set_initial_sync_ended_on_init,
|
| @@ -44,7 +43,7 @@ SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest(
|
| bool fail_initial_download,
|
| syncer::StorageOption storage_option)
|
| : browser_sync::SyncBackendHost(
|
| - profile->GetDebugName(), profile, sync_prefs, invalidator_storage),
|
| + profile->GetDebugName(), profile, sync_prefs),
|
| weak_ptr_factory_(this),
|
| id_factory_(id_factory),
|
| callback_(callback),
|
| @@ -116,8 +115,13 @@ void SyncBackendHostForProfileSyncTest::RequestConfigureSyncer(
|
| if (fail_initial_download_)
|
| failed_configuration_types = to_download;
|
|
|
| + // The first parameter there should be the set of enabled types. That's not
|
| + // something we have access to from this strange test harness. We'll just
|
| + // send back the list of newly configured types instead and hope it doesn't
|
| + // break anything.
|
| FinishConfigureDataTypesOnFrontendLoop(
|
| syncer::Difference(to_download, failed_configuration_types),
|
| + syncer::Difference(to_download, failed_configuration_types),
|
| failed_configuration_types,
|
| ready_task);
|
| }
|
| @@ -179,16 +183,6 @@ void SyncBackendHostForProfileSyncTest
|
| }
|
| }
|
|
|
| -void SyncBackendHostForProfileSyncTest::EmitOnInvalidatorStateChange(
|
| - syncer::InvalidatorState state) {
|
| - frontend()->OnInvalidatorStateChange(state);
|
| -}
|
| -
|
| -void SyncBackendHostForProfileSyncTest::EmitOnIncomingInvalidation(
|
| - const syncer::ObjectIdInvalidationMap& invalidation_map) {
|
| - frontend()->OnIncomingInvalidation(invalidation_map);
|
| -}
|
| -
|
| void SyncBackendHostForProfileSyncTest::ContinueInitialization(
|
| const syncer::WeakHandle<syncer::JsBackend>& js_backend,
|
| const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
|
| @@ -311,7 +305,6 @@ void TestProfileSyncService::CreateBackend() {
|
| backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest(
|
| profile(),
|
| sync_prefs_.AsWeakPtr(),
|
| - invalidator_storage_.AsWeakPtr(),
|
| id_factory_,
|
| callback_,
|
| set_initial_sync_ended_on_init_,
|
|
|