| Index: services/shell/public/cpp/lib/interface_registry.cc
|
| diff --git a/services/shell/public/cpp/lib/interface_registry.cc b/services/shell/public/cpp/lib/interface_registry.cc
|
| index fb34590a667e50093239b8b39bd8361265ae0976..ebfaddd35ace806392e426ee68569432371092bd 100644
|
| --- a/services/shell/public/cpp/lib/interface_registry.cc
|
| +++ b/services/shell/public/cpp/lib/interface_registry.cc
|
| @@ -38,6 +38,18 @@ void InterfaceRegistry::RemoveInterface(const std::string& name) {
|
| name_to_binder_.erase(it);
|
| }
|
|
|
| +void InterfaceRegistry::PauseBinding() {
|
| + DCHECK(!pending_request_.is_pending());
|
| + DCHECK(binding_.is_bound());
|
| + pending_request_ = binding_.Unbind();
|
| +}
|
| +
|
| +void InterfaceRegistry::ResumeBinding() {
|
| + DCHECK(pending_request_.is_pending());
|
| + DCHECK(!binding_.is_bound());
|
| + binding_.Bind(std::move(pending_request_));
|
| +}
|
| +
|
| // mojom::InterfaceProvider:
|
| void InterfaceRegistry::GetInterface(const mojo::String& interface_name,
|
| mojo::ScopedMessagePipeHandle handle) {
|
|
|