Index: mojo/application/public/cpp/application_impl.h |
diff --git a/mojo/application/public/cpp/application_impl.h b/mojo/application/public/cpp/application_impl.h |
index 1958461d786874dac8f79e2f027cc2f7bc54ebc7..a6e962c45b3d3dad519f11dda84544284dfe4f43 100644 |
--- a/mojo/application/public/cpp/application_impl.h |
+++ b/mojo/application/public/cpp/application_impl.h |
@@ -22,6 +22,8 @@ |
namespace mojo { |
+CapabilityFilterPtr CreatePermissiveCapabilityFilter(); |
+ |
// TODO(beng): This comment is hilariously out of date. |
// Utility class for communicating with the Shell, and providing Services |
// to clients. |
@@ -131,6 +133,7 @@ class ApplicationImpl : public Application { |
template <typename Interface> |
void ConnectToService(const std::string& url, InterfacePtr<Interface>* ptr) { |
ConnectParams params(url); |
+ params.set_filter(CreatePermissiveCapabilityFilter()); |
return ConnectToService(¶ms, ptr); |
} |