| Index: services/shell/public/cpp/interface_registry.h
|
| diff --git a/services/shell/public/cpp/interface_registry.h b/services/shell/public/cpp/interface_registry.h
|
| index e53f4a20dd4d8a7754ad3d19b06aee4ec185489f..b917a86827f39891f18618a563c604c8b3d8a6cf 100644
|
| --- a/services/shell/public/cpp/interface_registry.h
|
| +++ b/services/shell/public/cpp/interface_registry.h
|
| @@ -61,6 +61,16 @@ class InterfaceRegistry : public mojom::InterfaceProvider {
|
| base::WrapUnique(binder), interface_name);
|
| }
|
|
|
| + template <typename Interface>
|
| + void GetLocalInterface(mojo::InterfaceRequest<Interface> request) {
|
| + GetLocalInterface(Interface::Name_, request.PassMessagePipe());
|
| + }
|
| +
|
| + void GetLocalInterface(const std::string& name,
|
| + mojo::ScopedMessagePipeHandle handle) {
|
| + registry_->GetInterface(name, std::move(handle));
|
| + }
|
| +
|
| private:
|
| InterfaceRegistry* registry_;
|
| DISALLOW_COPY_AND_ASSIGN(TestApi);
|
|
|