Index: services/catalog/entry.cc |
diff --git a/services/catalog/entry.cc b/services/catalog/entry.cc |
index 1ba94e8d2a5bd3cd1e5b8f58865296f3cf7cf101..26c266b86f6e1630db05ea698ceb0fea4b44e534 100644 |
--- a/services/catalog/entry.cc |
+++ b/services/catalog/entry.cc |
@@ -123,6 +123,7 @@ |
Entry::Entry() {} |
Entry::Entry(const std::string& name) |
: name_(name), qualifier_(shell::GetNamePath(name)), display_name_(name) {} |
+Entry::Entry(const Entry& other) = default; |
Entry::~Entry() {} |
std::unique_ptr<base::DictionaryValue> Entry::Serialize() const { |
@@ -240,7 +241,7 @@ |
if (child) { |
child->set_package(entry.get()); |
// Caller must assume ownership of these items. |
- entry->children_.emplace_back(std::move(child)); |
+ entry->services_.insert(child.release()); |
} |
} |
} |