| 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..769f3427efd1bfdae3dbf5181d4c68ee0200e81c 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->ConnectToService(Interface::Name_, std::move(pipe.handle1));
|
| }
|
|
|
| } // namespace mojo
|
|
|