| Index: services/shell/public/cpp/lib/connection_impl.cc
|
| diff --git a/services/shell/public/cpp/lib/connection_impl.cc b/services/shell/public/cpp/lib/connection_impl.cc
|
| index 520420810df641da7f93cd657f74e20e1e911ceb..593c4fec5e2c8851ce4e84173da9639270c4a127 100644
|
| --- a/services/shell/public/cpp/lib/connection_impl.cc
|
| +++ b/services/shell/public/cpp/lib/connection_impl.cc
|
| @@ -74,7 +74,10 @@ const Identity& ConnectionImpl::GetRemoteIdentity() const {
|
| }
|
|
|
| void ConnectionImpl::SetConnectionLostClosure(const base::Closure& handler) {
|
| - remote_interfaces_->SetConnectionLostClosure(handler);
|
| + if (remote_interfaces_)
|
| + remote_interfaces_->SetConnectionLostClosure(handler);
|
| + else
|
| + exposed_interfaces_->SetConnectionLostClosure(handler);
|
| }
|
|
|
| shell::mojom::ConnectResult ConnectionImpl::GetResult() const {
|
| @@ -102,10 +105,6 @@ bool ConnectionImpl::AllowsInterface(const std::string& interface_name) const {
|
| capability_request_.interfaces.count(interface_name);
|
| }
|
|
|
| -mojom::InterfaceProvider* ConnectionImpl::GetRemoteInterfaceProvider() {
|
| - return remote_interfaces_->get();
|
| -}
|
| -
|
| InterfaceRegistry* ConnectionImpl::GetInterfaceRegistry() {
|
| return exposed_interfaces_;
|
| }
|
|
|