Index: chrome/browser/sync/glue/sync_backend_host_impl.cc |
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl.cc b/chrome/browser/sync/glue/sync_backend_host_impl.cc |
index 8aff13de81f84219d1c6a53873739b4a896293b4..1a1acc08bf4a80de38e42ce97d1a2a7ba14c70fe 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host_impl.cc |
+++ b/chrome/browser/sync/glue/sync_backend_host_impl.cc |
@@ -602,11 +602,6 @@ void SyncBackendHostImpl::HandleSyncCycleCompletedOnFrontendLoop( |
SDVLOG(1) << "Got snapshot " << snapshot.ToString(); |
- const syncer::ModelTypeSet to_migrate = |
- snapshot.model_neutral_state().types_needing_local_migration; |
- if (!to_migrate.Empty()) |
- frontend_->OnMigrationNeededForTypes(to_migrate); |
- |
// Process any changes to the datatypes we're syncing. |
// TODO(sync): add support for removing types. |
if (initialized()) |
@@ -641,6 +636,14 @@ void SyncBackendHostImpl::HandleActionableErrorEventOnFrontendLoop( |
frontend_->OnActionableError(sync_error); |
} |
+void SyncBackendHostImpl::HandleMigrationRequestedOnFrontendLoop( |
+ syncer::ModelTypeSet types) { |
+ if (!frontend_) |
+ return; |
+ DCHECK_EQ(base::MessageLoop::current(), frontend_loop_); |
+ frontend_->OnMigrationNeededForTypes(types); |
+} |
+ |
void SyncBackendHostImpl::OnInvalidatorStateChange( |
syncer::InvalidatorState state) { |
registrar_->sync_thread()->message_loop()->PostTask( |