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

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

Issue 1965053002: Remove ApplicationConnection::ConnectToService(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | mojo/public/cpp/application/application_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/application_connection.h
diff --git a/mojo/public/cpp/application/application_connection.h b/mojo/public/cpp/application/application_connection.h
index 33a7d048ad2504218badf1bc9c3dcba844e54524..9e6d39cf00ed2b4f0bd8cf0cfc6baa3a0b86de0f 100644
--- a/mojo/public/cpp/application/application_connection.h
+++ b/mojo/public/cpp/application/application_connection.h
@@ -47,18 +47,6 @@ class ApplicationConnection {
Interface::Name_);
}
- // Binds |ptr| to an implemention of Interface in the remote application.
- // |ptr| can immediately be used to start sending requests to the remote
- // service.
- template <typename Interface>
- void ConnectToService(InterfacePtr<Interface>* ptr) {
- if (ServiceProvider* sp = GetServiceProvider()) {
- MessagePipe pipe;
- ptr->Bind(InterfaceHandle<Interface>(pipe.handle0.Pass(), 0u));
- sp->ConnectToService(Interface::Name_, pipe.handle1.Pass());
- }
- }
-
// Returns the URL that was used by the source application to establish a
// connection to the destination application.
//
« no previous file with comments | « no previous file | mojo/public/cpp/application/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698