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

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

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
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
Index: services/shell/public/cpp/lib/connector_impl.cc
diff --git a/services/shell/public/cpp/lib/connector_impl.cc b/services/shell/public/cpp/lib/connector_impl.cc
index f7faf9681d045146243773c494307a83da0c6d8e..f464137ef78f51a4aefce74e5c39c19a7c95f82b 100644
--- a/services/shell/public/cpp/lib/connector_impl.cc
+++ b/services/shell/public/cpp/lib/connector_impl.cc
@@ -48,14 +48,10 @@ std::unique_ptr<Connection> ConnectorImpl::Connect(ConnectParams* params) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(params);
- // We allow all interfaces on outgoing connections since we are presumably in
- // a position to know who we're talking to.
- CapabilityRequest request;
- request.interfaces.insert("*");
mojom::InterfaceProviderPtr remote_interfaces;
mojom::InterfaceProviderRequest remote_request = GetProxy(&remote_interfaces);
std::unique_ptr<internal::ConnectionImpl> connection(
- new internal::ConnectionImpl(params->target(), request,
+ new internal::ConnectionImpl(params->target(),
Connection::State::PENDING));
if (params->remote_interfaces()) {
params->remote_interfaces()->Bind(std::move(remote_interfaces));
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.cc ('k') | services/shell/public/cpp/lib/interface_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698