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

Unified Diff: sync/engine/apply_updates_command.cc

Issue 10832286: sync: Introduce control data types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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: sync/engine/apply_updates_command.cc
diff --git a/sync/engine/apply_updates_command.cc b/sync/engine/apply_updates_command.cc
index da8a1cc4c2e987d464445cfbef8bd63cd0be4513..c423656ff9268cffa1b6c353f4a1e0d514c91a11 100644
--- a/sync/engine/apply_updates_command.cc
+++ b/sync/engine/apply_updates_command.cc
@@ -36,6 +36,10 @@ std::set<ModelSafeGroup> ApplyUpdatesCommand::GetGroupsToChange(
GetGroupForModelType(it.Get(), session.routing_info()));
}
+ // The INTERNAL types are special. They have their own update routines,
+ // ApplyUpdatesCommand should not process them.
+ groups_with_unapplied_updates.erase(GROUP_CONTROL);
+
return groups_with_unapplied_updates;
}

Powered by Google App Engine
This is Rietveld 408576698