Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: chrome/browser/sync/glue/sync_backend_host_impl.cc

Issue 158953004: sync: Move migration signal out of snapshot (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.h ('k') | sync/engine/all_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.h ('k') | sync/engine/all_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698