| Index: services/catalog/entry.cc
|
| diff --git a/services/catalog/entry.cc b/services/catalog/entry.cc
|
| index c9d9d0783a03ec408680d95708425e56a1711c03..26c266b86f6e1630db05ea698ceb0fea4b44e534 100644
|
| --- a/services/catalog/entry.cc
|
| +++ b/services/catalog/entry.cc
|
| @@ -231,17 +231,17 @@ std::unique_ptr<Entry> Entry::Deserialize(const base::DictionaryValue& value) {
|
| }
|
| entry->set_capabilities(spec);
|
|
|
| - if (value.HasKey(Store::kApplicationsKey)) {
|
| - const base::ListValue* applications = nullptr;
|
| - value.GetList(Store::kApplicationsKey, &applications);
|
| - for (size_t i = 0; i < applications->GetSize(); ++i) {
|
| - const base::DictionaryValue* application = nullptr;
|
| - applications->GetDictionary(i, &application);
|
| - std::unique_ptr<Entry> child = Entry::Deserialize(*application);
|
| + if (value.HasKey(Store::kServicesKey)) {
|
| + const base::ListValue* services = nullptr;
|
| + value.GetList(Store::kServicesKey, &services);
|
| + for (size_t i = 0; i < services->GetSize(); ++i) {
|
| + const base::DictionaryValue* service = nullptr;
|
| + services->GetDictionary(i, &service);
|
| + std::unique_ptr<Entry> child = Entry::Deserialize(*service);
|
| if (child) {
|
| child->set_package(entry.get());
|
| // Caller must assume ownership of these items.
|
| - entry->applications_.insert(child.release());
|
| + entry->services_.insert(child.release());
|
| }
|
| }
|
| }
|
|
|