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

Unified Diff: services/catalog/entry.cc

Issue 2440903002: Make "all user" services work when packaged. (Closed)
Patch Set: Addressed latest comments and synced. Created 4 years, 2 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 | « mash/task_viewer/task_viewer.cc ('k') | services/service_manager/public/cpp/lib/identity.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 7a090156a5b6795c8b028dbfc1900b4cf42fd8fc..35be1ca30f2410461c708f47d19e306ebc2e0a5c 100644
--- a/services/catalog/entry.cc
+++ b/services/catalog/entry.cc
@@ -259,6 +259,12 @@ TypeConverter<service_manager::mojom::ResolveResultPtr,
result->resolved_name = package.name();
result->qualifier = input.qualifier();
result->interface_provider_specs = input.interface_provider_specs();
+ if (input.package()) {
+ auto it = package.interface_provider_specs().find(
+ service_manager::mojom::kServiceManager_ConnectorSpec);
+ if (it != package.interface_provider_specs().end())
+ result->package_spec = it->second;
+ }
result->package_path = package.path();
return result;
}
« no previous file with comments | « mash/task_viewer/task_viewer.cc ('k') | services/service_manager/public/cpp/lib/identity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698