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

Unified Diff: mojo/public/cpp/application/connect.h

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: mojo/public/cpp/application/connect.h
diff --git a/mojo/public/cpp/application/connect.h b/mojo/public/cpp/application/connect.h
index 06b79e7e4e0cf0e085024bc759774d1b848d73ad..4b6e97e9255ed689f91d95cb36501658f9c78e81 100644
--- a/mojo/public/cpp/application/connect.h
+++ b/mojo/public/cpp/application/connect.h
@@ -26,8 +26,8 @@ inline void ConnectToService(Shell* shell,
const std::string& application_url,
InterfacePtr<Interface>* ptr) {
ServiceProviderPtr service_provider;
- shell->ConnectToApplication(application_url,
- GetProxy(&service_provider), nullptr);
+ shell->ConnectToApplication(application_url, GetProxy(&service_provider),
+ InterfaceHandle<ServiceProvider>());
ConnectToService(service_provider.get(), ptr);
}
@@ -38,7 +38,8 @@ inline void ConnectToService(ApplicationConnector* application_connector,
InterfacePtr<Interface>* ptr) {
ServiceProviderPtr service_provider;
application_connector->ConnectToApplication(
- application_url, GetProxy(&service_provider), nullptr);
+ application_url, GetProxy(&service_provider),
+ InterfaceHandle<ServiceProvider>());
ConnectToService(service_provider.get(), ptr);
}

Powered by Google App Engine
This is Rietveld 408576698