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..712e8dd0815c5ce26b02349a2713e95077dc81f8 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).Pass()); |
Sam McNally
2015/05/21 00:00:05
Remove the .Pass(). mojo::GetProxy() already retur
Anand Mistry (off Chromium)
2015/05/21 00:12:08
Done.
|
+ } |
+ 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; |