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

Unified Diff: components/mus/ws/window_manager_access_policy.cc

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/window_manager_access_policy.h ('k') | components/mus/ws/window_tree.h » ('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.cc
diff --git a/components/mus/ws/window_manager_access_policy.cc b/components/mus/ws/window_manager_access_policy.cc
index 16a215b4036158028005271ca847c204590b4e92..8a4a820c25b99269408c621828b0f129294b1221 100644
--- a/components/mus/ws/window_manager_access_policy.cc
+++ b/components/mus/ws/window_manager_access_policy.cc
@@ -10,16 +10,16 @@
namespace mus {
namespace ws {
-// TODO(sky): document why this differs from default for each case. Maybe want
-// to subclass DefaultAccessPolicy.
-
-WindowManagerAccessPolicy::WindowManagerAccessPolicy(
- ConnectionSpecificId connection_id,
- AccessPolicyDelegate* delegate)
- : connection_id_(connection_id), delegate_(delegate) {}
+WindowManagerAccessPolicy::WindowManagerAccessPolicy() {}
WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {}
+void WindowManagerAccessPolicy::Init(ConnectionSpecificId connection_id,
+ AccessPolicyDelegate* delegate) {
+ connection_id_ = connection_id;
+ delegate_ = delegate;
+}
+
bool WindowManagerAccessPolicy::CanRemoveWindowFromParent(
const ServerWindow* window) const {
return true;
« no previous file with comments | « components/mus/ws/window_manager_access_policy.h ('k') | components/mus/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698