| Index: content/public/common/service_registry.h
|
| diff --git a/content/public/common/service_registry.h b/content/public/common/service_registry.h
|
| index 2d65cf9ee93c7687d229cf162e03501785d6fb2f..efaefa03fa4681d8eb8386bce7d6edab3bccc224 100644
|
| --- a/content/public/common/service_registry.h
|
| +++ b/content/public/common/service_registry.h
|
| @@ -54,8 +54,11 @@ class CONTENT_EXPORT ServiceRegistry {
|
| // Connect to an interface provided by the remote service provider.
|
| template <typename Interface>
|
| void ConnectToRemoteService(mojo::InterfacePtr<Interface>* ptr) {
|
| - ConnectToRemoteService(Interface::Name_,
|
| - mojo::GetProxy(ptr).PassMessagePipe());
|
| + ConnectToRemoteService(mojo::GetProxy(ptr));
|
| + }
|
| + template <typename Interface>
|
| + void ConnectToRemoteService(mojo::InterfaceRequest<Interface> ptr) {
|
| + ConnectToRemoteService(Interface::Name_, ptr.PassMessagePipe());
|
| }
|
| virtual void ConnectToRemoteService(const base::StringPiece& name,
|
| mojo::ScopedMessagePipeHandle handle) = 0;
|
|
|