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

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

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase ontop of master, address trung's comments Created 4 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 | « mojo/public/cpp/application/lib/service_registry.h ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5b7c93e18e85c1232b4f25093ac1f8c19897b11c..dea138dfcffb2e69453db677c70237af93ca832d 100644
--- a/mojo/public/cpp/application/lib/service_registry.cc
+++ b/mojo/public/cpp/application/lib/service_registry.cc
@@ -15,13 +15,14 @@ ServiceRegistry::ServiceRegistry(
ApplicationImpl* application_impl,
const std::string& connection_url,
const std::string& remote_url,
- ServiceProviderPtr remote_services,
+ InterfaceHandle<ServiceProvider> remote_services,
InterfaceRequest<ServiceProvider> local_services)
: application_impl_(application_impl),
connection_url_(connection_url),
remote_url_(remote_url),
local_binding_(this),
- remote_service_provider_(remote_services.Pass()) {
+ remote_service_provider_(
+ ServiceProviderPtr::Create(std::move(remote_services))) {
if (local_services.is_pending())
local_binding_.Bind(local_services.Pass());
}
« no previous file with comments | « mojo/public/cpp/application/lib/service_registry.h ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698