Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: services/shell/public/cpp/lib/connection_impl.cc

Issue 2209943002: Eliminate outgoing InterfaceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracing
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.h ('k') | services/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.h ('k') | services/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698