Index: sync/syncable/directory.cc |
diff --git a/sync/syncable/directory.cc b/sync/syncable/directory.cc |
index 97e7071e591da8a084cc5971f642bb8cdb23c5be..0df9f1180a339a1988f11fc844c0d7d357ac90af 100644 |
--- a/sync/syncable/directory.cc |
+++ b/sync/syncable/directory.cc |
@@ -934,13 +934,18 @@ void Directory::CollectMetaHandleCounts( |
} |
} |
-scoped_ptr<base::ListValue> Directory::GetAllNodeDetails( |
- BaseTransaction* trans) { |
+scoped_ptr<base::ListValue> Directory::GetNodeDetailsForType( |
+ BaseTransaction* trans, |
+ ModelType type) { |
scoped_ptr<base::ListValue> nodes(new base::ListValue()); |
ScopedKernelLock lock(this); |
for (MetahandlesMap::iterator it = kernel_->metahandles_map.begin(); |
it != kernel_->metahandles_map.end(); ++it) { |
+ if (GetModelTypeFromSpecifics(it->second->ref(SPECIFICS)) != type) { |
+ continue; |
+ } |
+ |
EntryKernel* kernel = it->second; |
scoped_ptr<base::DictionaryValue> node( |
kernel->ToValue(GetCryptographer(trans))); |