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

Unified Diff: mojo/shell/public/cpp/connector.h

Issue 1734643003: Remove CapabilityFilter from Connect() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@13connector2
Patch Set: . Created 4 years, 10 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/identity.cc ('k') | mojo/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: mojo/shell/public/cpp/connector.h
diff --git a/mojo/shell/public/cpp/connector.h b/mojo/shell/public/cpp/connector.h
index 7385e185078863524cba546fa22a00f94dedd182..c527d9248314d7ea162dbfdf7f7d1e5ecf725add 100644
--- a/mojo/shell/public/cpp/connector.h
+++ b/mojo/shell/public/cpp/connector.h
@@ -11,8 +11,6 @@
namespace mojo {
-shell::mojom::CapabilityFilterPtr CreatePermissiveCapabilityFilter();
-
// An interface that encapsulates the Mojo Shell's broker interface by which
// connections between applications are established. Once Connect() is called,
// this class is bound to the thread the call was made on and it cannot be
@@ -35,18 +33,11 @@ class Connector {
~ConnectParams();
const GURL& url() { return url_; }
- shell::mojom::CapabilityFilterPtr TakeFilter() {
- return std::move(filter_);
- }
- void set_filter(shell::mojom::CapabilityFilterPtr filter) {
- filter_ = std::move(filter);
- }
void set_user_id(uint32_t user_id) { user_id_ = user_id; }
uint32_t user_id() const { return user_id_; }
private:
GURL url_;
- shell::mojom::CapabilityFilterPtr filter_;
uint32_t user_id_;
DISALLOW_COPY_AND_ASSIGN(ConnectParams);
@@ -73,7 +64,6 @@ class Connector {
void ConnectToInterface(const std::string& url,
InterfacePtr<Interface>* ptr) {
ConnectParams params(url);
- params.set_filter(CreatePermissiveCapabilityFilter());
return ConnectToInterface(&params, ptr);
}
« no previous file with comments | « mojo/shell/identity.cc ('k') | mojo/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698