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

Unified Diff: services/catalog/catalog.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/catalog/catalog.h ('k') | services/catalog/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/catalog.cc
diff --git a/services/catalog/catalog.cc b/services/catalog/catalog.cc
index 4545267c5ca6092c94929df129ae0cd3acbf8bfa..e47caa7a2143802610f3bd678a7fa6605eaed130 100644
--- a/services/catalog/catalog.cc
+++ b/services/catalog/catalog.cc
@@ -111,6 +111,7 @@ void Catalog::ScanSystemPackageDir() {
bool Catalog::OnConnect(const shell::Identity& remote_identity,
shell::InterfaceRegistry* registry) {
registry->AddInterface<mojom::Catalog>(this);
+ registry->AddInterface<mojom::CatalogControl>(this);
registry->AddInterface<filesystem::mojom::Directory>(this);
registry->AddInterface<shell::mojom::Resolver>(this);
return true;
@@ -141,6 +142,19 @@ void Catalog::Create(const shell::Identity& remote_identity,
std::move(request));
}
+void Catalog::Create(const shell::Identity& remote_identity,
+ mojom::CatalogControlRequest request) {
+ control_bindings_.AddBinding(this, std::move(request));
+}
+
+void Catalog::OverrideManifestPath(
+ const std::string& service_name,
+ const base::FilePath& path,
+ const OverrideManifestPathCallback& callback) {
+ system_reader_->OverrideManifestPath(service_name, path);
+ callback.Run();
+}
+
Instance* Catalog::GetInstanceForUserId(const std::string& user_id) {
auto it = instances_.find(user_id);
if (it != instances_.end())
« no previous file with comments | « services/catalog/catalog.h ('k') | services/catalog/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698