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 acafa89ee5cc66564360f10da54f59777ce94ef9..4df3e473c2ae33e80c25833ac49049482548ea78 100644 |
--- a/services/shell/public/cpp/lib/connection_impl.cc |
+++ b/services/shell/public/cpp/lib/connection_impl.cc |
@@ -31,18 +31,16 @@ ConnectionImpl::ConnectionImpl( |
remote_(remote), |
remote_id_(remote_id), |
state_(initial_state), |
- interfaces_(std::move(remote_interfaces), |
- std::move(local_interfaces), |
- this), |
+ interfaces_(std::move(local_interfaces), this), |
+ remote_interfaces_(std::move(remote_interfaces)), |
capability_request_(capability_request), |
allow_all_interfaces_(capability_request.interfaces.size() == 1 && |
capability_request.interfaces.count("*") == 1), |
weak_factory_(this) {} |
ConnectionImpl::ConnectionImpl() |
- : interfaces_(shell::mojom::InterfaceProviderPtr(), |
- shell::mojom::InterfaceProviderRequest(), |
- this), |
+ : interfaces_(nullptr, this), |
+ remote_interfaces_(nullptr), |
allow_all_interfaces_(true), |
weak_factory_(this) {} |
@@ -69,7 +67,7 @@ const Identity& ConnectionImpl::GetRemoteIdentity() const { |
} |
void ConnectionImpl::SetConnectionLostClosure(const base::Closure& handler) { |
- interfaces_.SetRemoteInterfacesConnectionLostClosure(handler); |
+ remote_interfaces_.SetConnectionLostClosure(handler); |
} |
shell::mojom::ConnectResult ConnectionImpl::GetResult() const { |
@@ -101,6 +99,10 @@ InterfaceRegistry* ConnectionImpl::GetInterfaceRegistry() { |
return &interfaces_; |
} |
+RemoteInterfaceRegistry* ConnectionImpl::GetRemoteInterfaceRegistry() { |
+ return &remote_interfaces_; |
+} |
+ |
base::WeakPtr<Connection> ConnectionImpl::GetWeakPtr() { |
return weak_factory_.GetWeakPtr(); |
} |