Index: services/catalog/reader.cc |
diff --git a/services/catalog/reader.cc b/services/catalog/reader.cc |
index afa5272b5630462f005b301e8930831b88a825f0..7439f30876bb4702afb76312dedb776047ccb831 100644 |
--- a/services/catalog/reader.cc |
+++ b/services/catalog/reader.cc |
@@ -133,9 +133,8 @@ |
} |
void AddEntryToCache(EntryCache* cache, std::unique_ptr<Entry> entry) { |
- std::vector<std::unique_ptr<Entry>> children = entry->TakeChildren(); |
- for (auto& child : children) |
- AddEntryToCache(cache, std::move(child)); |
+ for (auto* child : entry->services()) |
+ AddEntryToCache(cache, base::WrapUnique(child)); |
(*cache)[entry->name()] = std::move(entry); |
} |