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

Unified Diff: mojo/application/public/cpp/application_impl.h

Issue 1474563002: Make CapabilityFilter non-nullable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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 | « content/test/data/web_ui_mojo_shell_test.js ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(&params, ptr);
}
« no previous file with comments | « content/test/data/web_ui_mojo_shell_test.js ('k') | mojo/application/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698