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

Unified Diff: components/mus/ws/window_manager_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/display_binding.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_access_policy.h
diff --git a/components/mus/ws/window_manager_access_policy.h b/components/mus/ws/window_manager_access_policy.h
index 7cb062ec9dbaa825c14d044e7bbccf0e2a99a839..bb9a1fff896cd8fca1e02c0ec8146affcdd7bd6a 100644
--- a/components/mus/ws/window_manager_access_policy.h
+++ b/components/mus/ws/window_manager_access_policy.h
@@ -17,11 +17,12 @@ class AccessPolicyDelegate;
class WindowManagerAccessPolicy : public AccessPolicy {
public:
- WindowManagerAccessPolicy(ConnectionSpecificId connection_id,
- AccessPolicyDelegate* delegate);
+ WindowManagerAccessPolicy();
~WindowManagerAccessPolicy() 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;
@@ -60,8 +61,8 @@ class WindowManagerAccessPolicy : public AccessPolicy {
private:
bool IsWindowKnown(const ServerWindow* window) const;
- const ConnectionSpecificId connection_id_;
- AccessPolicyDelegate* delegate_;
+ ConnectionSpecificId connection_id_ = 0u;
+ AccessPolicyDelegate* delegate_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy);
};
« no previous file with comments | « components/mus/ws/display_binding.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698