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 60c881b3e294a938563ee9a083b3457a73cc64db..b582da4d78bcea70e2a357bd2202be5a6ff45da6 100644 |
--- a/chrome/browser/sync/test_profile_sync_service.cc |
+++ b/chrome/browser/sync/test_profile_sync_service.cc |
@@ -44,19 +44,6 @@ SyncBackendHostForProfileSyncTest::SyncBackendHostForProfileSyncTest( |
SyncBackendHostForProfileSyncTest::~SyncBackendHostForProfileSyncTest() {} |
-void SyncBackendHostForProfileSyncTest:: |
- SimulateSyncCycleCompletedInitialSyncEnded( |
- const tracked_objects::Location& location) { |
- syncable::ModelTypeSet sync_ended; |
- if (!fail_initial_download_) |
- sync_ended = syncable::ModelTypeSet::All(); |
- syncable::ModelTypePayloadMap download_progress_markers; |
- HandleSyncCycleCompletedOnFrontendLoop(SyncSessionSnapshot( |
- SyncerStatus(), ErrorCounters(), 0, false, |
- sync_ended, download_progress_markers, false, false, 0, 0, 0, 0, |
- SyncSourceInfo(), false, 0, base::Time::Now(), false)); |
-} |
- |
namespace { |
sync_api::HttpPostProviderFactory* MakeTestHttpBridgeFactory() { |
@@ -85,20 +72,19 @@ void SyncBackendHostForProfileSyncTest::InitCore( |
} |
} |
-void SyncBackendHostForProfileSyncTest::StartConfiguration( |
- const base::Closure& callback) { |
- SyncBackendHost::FinishConfigureDataTypesOnFrontendLoop(); |
- if (IsDownloadingNigoriForTest()) { |
- syncable::ModelTypeSet sync_ended; |
+void SyncBackendHostForProfileSyncTest::RequestConfigureSyncer( |
+ sync_api::ConfigureReason reason, |
+ syncable::ModelTypeSet types_to_config, |
+ const browser_sync::ModelSafeRoutingInfo routing_info, |
+ const base::Callback<void(syncable::ModelTypeSet)>& ready_task, |
+ const base::Closure& retry_callback) { |
+ syncable::ModelTypeSet sync_ended; |
+ if (IsDownloadingNigoriForTest() && !fail_initial_download_) |
+ sync_ended.Put(syncable::NIGORI); |
- if (!fail_initial_download_) |
- sync_ended.Put(syncable::NIGORI); |
- syncable::ModelTypePayloadMap download_progress_markers; |
- HandleSyncCycleCompletedOnFrontendLoop(SyncSessionSnapshot( |
- SyncerStatus(), ErrorCounters(), 0, false, |
- sync_ended, download_progress_markers, false, false, 0, 0, 0, 0, |
- SyncSourceInfo(), false, 0, base::Time::Now(), false)); |
- } |
+ FinishConfigureDataTypesOnFrontendLoop(types_to_config, |
+ sync_ended, |
+ ready_task); |
} |
void SyncBackendHostForProfileSyncTest::SetHistoryServiceExpectations( |