| 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);
|
|
|