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

Unified Diff: mojo/public/cpp/application/lib/service_registry.cc

Issue 845593003: Pass ServiceProvider and ServiceProvider& params in Connect (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: mojo/public/cpp/application/lib/service_registry.cc
diff --git a/mojo/public/cpp/application/lib/service_registry.cc b/mojo/public/cpp/application/lib/service_registry.cc
index 19a8be20a794f35387427a8558d41b35897c9718..d934a166ba3c020372bf8dcd243dc1b214bfd4e9 100644
--- a/mojo/public/cpp/application/lib/service_registry.cc
+++ b/mojo/public/cpp/application/lib/service_registry.cc
@@ -11,16 +11,19 @@
namespace mojo {
namespace internal {
-ServiceRegistry::ServiceRegistry(ApplicationImpl* application_impl,
- const std::string& url,
- ServiceProviderPtr service_provider)
+ServiceRegistry::ServiceRegistry(
+ ApplicationImpl* application_impl,
+ const std::string& url,
+ ServiceProviderPtr remote_services,
+ InterfaceRequest<ServiceProvider> local_services)
: application_impl_(application_impl),
url_(url),
- remote_service_provider_(service_provider.Pass()) {
- remote_service_provider_.set_client(this);
+ local_binding_(this, local_services.Pass()),
+ remote_service_provider_(remote_services.Pass()) {
}
-ServiceRegistry::ServiceRegistry() : application_impl_(nullptr) {
+ServiceRegistry::ServiceRegistry()
+ : application_impl_(nullptr), local_binding_(this) {
}
ServiceRegistry::~ServiceRegistry() {

Powered by Google App Engine
This is Rietveld 408576698