Index: services/shell/public/cpp/connection.h |
diff --git a/services/shell/public/cpp/connection.h b/services/shell/public/cpp/connection.h |
index 1c78c7a121b389b9936be1c86076a142c48a55a4..fdcb60b3ef1537bba489ccab7054af0bee2cb992 100644 |
--- a/services/shell/public/cpp/connection.h |
+++ b/services/shell/public/cpp/connection.h |
@@ -90,6 +90,10 @@ class Connection { |
void GetInterface(mojo::InterfacePtr<Interface>* ptr) { |
GetRemoteInterfaces()->GetInterface(ptr); |
} |
+ template <typename Interface> |
+ void GetInterface(mojo::InterfaceRequest<Interface> request) { |
+ GetRemoteInterfaces()->GetInterface(std::move(request)); |
+ } |
// Returns true if the remote application has the specified capability class |
// specified in its manifest. Only valid for inbound connections. Will return |