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

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

Issue 1781913003: Capability Classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@45class
Patch Set: . Created 4 years, 9 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 | « mojo/shell/public/cpp/lib/connection_impl.cc ('k') | mojo/shell/public/cpp/lib/shell_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/cpp/lib/connector_impl.cc
diff --git a/mojo/shell/public/cpp/lib/connector_impl.cc b/mojo/shell/public/cpp/lib/connector_impl.cc
index 74edbe4d1e8bc5d91b328f93caa938114b764334..98a7ae5c428232d49f821eaec0767da6c3ec7638 100644
--- a/mojo/shell/public/cpp/lib/connector_impl.cc
+++ b/mojo/shell/public/cpp/lib/connector_impl.cc
@@ -49,8 +49,8 @@ scoped_ptr<Connection> ConnectorImpl::Connect(ConnectParams* params) {
// TODO(beng): We should filter outgoing interfaces also. The shell must pass
// the manifest CapabilityFilter to the ShellConnection via
// Initialize(), it can be used here.
- std::set<std::string> allowed;
- allowed.insert("*");
+ CapabilityRequest request;
+ request.interfaces.insert("*");
shell::mojom::InterfaceProviderPtr local_interfaces;
shell::mojom::InterfaceProviderRequest local_request =
GetProxy(&local_interfaces);
@@ -60,7 +60,7 @@ scoped_ptr<Connection> ConnectorImpl::Connect(ConnectParams* params) {
scoped_ptr<internal::ConnectionImpl> registry(new internal::ConnectionImpl(
params->target().name(), params->target(),
shell::mojom::kInvalidInstanceID, std::move(remote_interfaces),
- std::move(local_request), allowed, Connection::State::PENDING));
+ std::move(local_request), request, Connection::State::PENDING));
shell::mojom::ShellClientFactoryPtr shell_client_factory;
shell::mojom::PIDReceiverRequest pid_receiver_request;
« no previous file with comments | « mojo/shell/public/cpp/lib/connection_impl.cc ('k') | mojo/shell/public/cpp/lib/shell_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698