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

Unified Diff: services/service_manager/public/cpp/lib/interface_registry.cc

Issue 2695803004: Make browser process a singleton service (Closed)
Patch Set: . Created 3 years, 10 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/service_manager/public/cpp/interface_registry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/service_manager/public/cpp/lib/interface_registry.cc
diff --git a/services/service_manager/public/cpp/lib/interface_registry.cc b/services/service_manager/public/cpp/lib/interface_registry.cc
index 6367f1b058338bdc9b8855c8f342379d90760784..ba2ea2f9dab270a0e6d9e9c36f0c647d030efb86 100644
--- a/services/service_manager/public/cpp/lib/interface_registry.cc
+++ b/services/service_manager/public/cpp/lib/interface_registry.cc
@@ -183,6 +183,13 @@ void InterfaceRegistry::AddConnectionLostClosure(
connection_lost_closures_.push_back(connection_lost_closure);
}
+void InterfaceRegistry::BindInterface(const std::string& name,
+ mojo::ScopedMessagePipeHandle handle) {
+ // NOTE: We don't expose GetInterface() publicly so as to avoid confusion
+ // with local and remote binding requests.
+ GetInterface(name, std::move(handle));
+}
+
// mojom::InterfaceProvider:
void InterfaceRegistry::GetInterface(const std::string& interface_name,
mojo::ScopedMessagePipeHandle handle) {
« no previous file with comments | « services/service_manager/public/cpp/interface_registry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698