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

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: Address comments (never tried to compile, possibly broken) 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
« no previous file with comments | « sync/engine/apply_control_data_updates_unittest.cc ('k') | sync/engine/apply_updates_command_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
Nicolas Zea 2012/08/20 20:44:28 INTERNAL -> CONTROL?
rlarocque 2012/08/22 23:46:24 Done.
+ // ApplyUpdatesCommand should not process them.
+ groups_with_unapplied_updates.erase(GROUP_CONTROL);
+
return groups_with_unapplied_updates;
}
« no previous file with comments | « sync/engine/apply_control_data_updates_unittest.cc ('k') | sync/engine/apply_updates_command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698