Index: mojo/shell/public/cpp/connect.h |
diff --git a/mojo/shell/public/cpp/connect.h b/mojo/shell/public/cpp/connect.h |
index acc496ce3e6e11c0cd94131007529db0e3dcef91..48d76a8839cb578035b31d54d6d30f00830c9426 100644 |
--- a/mojo/shell/public/cpp/connect.h |
+++ b/mojo/shell/public/cpp/connect.h |
@@ -7,17 +7,17 @@ |
#include <utility> |
-#include "mojo/shell/public/interfaces/service_provider.mojom.h" |
+#include "mojo/shell/public/interfaces/interface_provider.mojom.h" |
namespace mojo { |
-// Binds |ptr| to a remote implementation of Interface from |service_provider|. |
+// Binds |ptr| to a remote implementation of Interface from |interfaces|. |
template <typename Interface> |
-inline void ConnectToService(ServiceProvider* service_provider, |
- InterfacePtr<Interface>* ptr) { |
+inline void GetInterface(InterfaceProvider* interfaces, |
+ InterfacePtr<Interface>* ptr) { |
MessagePipe pipe; |
ptr->Bind(InterfacePtrInfo<Interface>(std::move(pipe.handle0), 0u)); |
- service_provider->ConnectToService(Interface::Name_, std::move(pipe.handle1)); |
+ interfaces->GetInterface(Interface::Name_, std::move(pipe.handle1)); |
} |
} // namespace mojo |