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

Unified Diff: components/mus/ws/default_access_policy.h

Issue 1782123003: Makes WindowTree take the AccessPolicy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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 | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/default_access_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/default_access_policy.h
diff --git a/components/mus/ws/default_access_policy.h b/components/mus/ws/default_access_policy.h
index 8c1c5d0b4e73b6e874e4c1467485fae11f04c9f4..17b47bf707f8d0a8a6c119a113fa3f5232c9b03c 100644
--- a/components/mus/ws/default_access_policy.h
+++ b/components/mus/ws/default_access_policy.h
@@ -18,11 +18,12 @@ class AccessPolicyDelegate;
// AccessPolicy for all connections, except the window manager.
class DefaultAccessPolicy : public AccessPolicy {
public:
- DefaultAccessPolicy(ConnectionSpecificId connection_id,
- AccessPolicyDelegate* delegate);
+ DefaultAccessPolicy();
~DefaultAccessPolicy() override;
// AccessPolicy:
+ void Init(ConnectionSpecificId connection_id,
+ AccessPolicyDelegate* delegate) override;
bool CanRemoveWindowFromParent(const ServerWindow* window) const override;
bool CanAddWindow(const ServerWindow* parent,
const ServerWindow* child) const override;
@@ -61,8 +62,8 @@ class DefaultAccessPolicy : public AccessPolicy {
private:
bool WasCreatedByThisConnection(const ServerWindow* window) const;
- const ConnectionSpecificId connection_id_;
- AccessPolicyDelegate* delegate_;
+ ConnectionSpecificId connection_id_ = 0u;
+ AccessPolicyDelegate* delegate_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy);
};
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/default_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698