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

Unified Diff: services/shell/service_manager.cc

Issue 2389133008: Mash: Replaces "exe:chrome" with "service:content_browser" (Closed)
Patch Set: rebase 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 | « services/shell/public/tools/manifest/manifest_collator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/service_manager.cc
diff --git a/services/shell/service_manager.cc b/services/shell/service_manager.cc
index 721640077631ab5e81053473ff5f8a1e4dbfcc74..5b4e8c47820ce1b001d8a8943c711128d54a016f 100644
--- a/services/shell/service_manager.cc
+++ b/services/shell/service_manager.cc
@@ -364,7 +364,7 @@ class ServiceManager::Instance
LOG(ERROR) << "Instance: " << identity_.name() << " running as: "
<< identity_.user_id() << " attempting to connect to: "
<< target.name() << " as: " << target.user_id() << " without "
- << " the mojo:shell{user_id} capability class.";
+ << " the service:shell{user_id} capability class.";
callback.Run(mojom::ConnectResult::ACCESS_DENIED,
mojom::kInheritUserID);
return false;
@@ -560,12 +560,10 @@ void ServiceManager::InitCatalog(mojom::ServicePtr catalog) {
// TODO(beng): It'd be great to build this from the manifest, however there's
// a bit of a chicken-and-egg problem.
CapabilitySpec spec;
- Interfaces interfaces;
- interfaces.insert("filesystem::mojom::Directory");
- spec.provided["app"] = interfaces;
- Instance* instance = CreateInstance(CreateServiceManagerIdentity(),
- CreateCatalogIdentity(),
- spec);
+ spec.provided["app"].insert("filesystem::mojom::Directory");
+ spec.provided["control"].insert("catalog::mojom::CatalogControl");
+ Instance* instance = CreateInstance(
+ CreateServiceManagerIdentity(), CreateCatalogIdentity(), spec);
singletons_.insert(kCatalogName);
instance->StartWithService(std::move(catalog));
}
« no previous file with comments | « services/shell/public/tools/manifest/manifest_collator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698