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

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

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase Created 9 years, 4 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
Index: chrome/browser/sync/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index a031fde7d047ef5b0cef3b25f92b7e04b93e4929..00786e046f5279afbded123d41d4214896829ba1 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -710,6 +710,14 @@ void SyncBackendHost::Core::HandleSyncCycleCompletedOnFrontendLoop(
if (!to_migrate.empty())
host_->frontend_->OnMigrationNeededForTypes(to_migrate);
+ // Process any changes to the datatypes we're syncing.
+ // TODO(sync): add support for removing types.
+ syncable::ModelTypeSet to_add;
+ if (host_->initialized() &&
+ sync_manager()->ReceivedExperimentalTypes(&to_add)) {
+ host_->frontend_->OnDataTypesChanged(to_add);
+ }
+
// If we are waiting for a configuration change, check here to see
// if this sync cycle has initialized all of the types we've been
// waiting for.
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.h ('k') | chrome/browser/sync/glue/sync_backend_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698