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

Unified Diff: sync/engine/model_safe_worker.cc

Issue 9950137: [not for review] sync: Don't use group_restriction from ApplyUpdatesCommand. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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/model_safe_worker.h ('k') | sync/engine/process_updates_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/model_safe_worker.cc
diff --git a/sync/engine/model_safe_worker.cc b/sync/engine/model_safe_worker.cc
index a5aa04fde23334b01d668e065bf5c5427d42cf10..c343995f0cc395ada46c29d60fd6896440a29ec1 100644
--- a/sync/engine/model_safe_worker.cc
+++ b/sync/engine/model_safe_worker.cc
@@ -39,6 +39,18 @@ syncable::ModelTypeSet GetRoutingInfoTypes(
return types;
}
+syncable::FullModelTypeSet GetModelTypesForGroup(
+ ModelSafeGroup group,
+ const ModelSafeRoutingInfo& routing_info) {
+ syncable::FullModelTypeSet result;
+ for (ModelSafeRoutingInfo::const_iterator it = routing_info.begin();
+ it != routing_info.end(); ++it) {
+ if (it->second == group)
+ result.Put(it->first);
+ }
+ return result;
+}
+
ModelSafeGroup GetGroupForModelType(const syncable::ModelType type,
const ModelSafeRoutingInfo& routes) {
ModelSafeRoutingInfo::const_iterator it = routes.find(type);
« no previous file with comments | « sync/engine/model_safe_worker.h ('k') | sync/engine/process_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698