Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(958)

Unified Diff: services/catalog/entry.cc

Issue 2164503006: Rename mojo_application GN templates to service* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/catalog/entry.h ('k') | services/catalog/reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
}
« no previous file with comments | « services/catalog/entry.h ('k') | services/catalog/reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698