| Index: services/catalog/entry.h
|
| diff --git a/services/catalog/entry.h b/services/catalog/entry.h
|
| index 90f9c1cfe9273cc1c78853d448263bd791fa76ff..74c302239995a7a9ed9b20de98a385ccfbe7b381 100644
|
| --- a/services/catalog/entry.h
|
| +++ b/services/catalog/entry.h
|
| @@ -6,8 +6,8 @@
|
| #define SERVICES_CATALOG_ENTRY_H_
|
|
|
| #include <memory>
|
| +#include <set>
|
| #include <string>
|
| -#include <vector>
|
|
|
| #include "base/files/file_path.h"
|
| #include "services/catalog/public/interfaces/catalog.mojom.h"
|
| @@ -24,6 +24,7 @@
|
| public:
|
| Entry();
|
| explicit Entry(const std::string& name);
|
| + explicit Entry(const Entry& other);
|
| ~Entry();
|
|
|
| std::unique_ptr<base::DictionaryValue> Serialize() const;
|
| @@ -54,10 +55,7 @@
|
| }
|
| const Entry* package() const { return package_; }
|
| void set_package(Entry* package) { package_ = package; }
|
| -
|
| - std::vector<std::unique_ptr<Entry>> TakeChildren() {
|
| - return std::move(children_);
|
| - }
|
| + const std::set<Entry*>& services() { return services_; }
|
|
|
| private:
|
| std::string name_;
|
| @@ -66,7 +64,7 @@
|
| std::string display_name_;
|
| shell::CapabilitySpec capabilities_;
|
| Entry* package_ = nullptr;
|
| - std::vector<std::unique_ptr<Entry>> children_;
|
| + std::set<Entry*> services_;
|
| };
|
|
|
| } // namespace catalog
|
|
|