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..ab9c59d53be4f2592b034373b60e72763d421020 100644 |
--- a/content/public/common/service_registry.h |
+++ b/content/public/common/service_registry.h |
@@ -57,6 +57,10 @@ class CONTENT_EXPORT ServiceRegistry { |
ConnectToRemoteService(Interface::Name_, |
Sam McNally
2015/05/20 02:53:13
This can just forward to the InterfaceRequest over
Anand Mistry (off Chromium)
2015/05/20 03:14:59
Done.
|
mojo::GetProxy(ptr).PassMessagePipe()); |
} |
+ 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; |