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

Unified Diff: components/mus/ws/display_binding.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/default_access_policy.cc ('k') | components/mus/ws/window_manager_access_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/display_binding.cc
diff --git a/components/mus/ws/display_binding.cc b/components/mus/ws/display_binding.cc
index 31ce695cba83e0f4c3937b6af626b9e5a1c3f8e2..20e788cec00e6646d3471a331f800bd8dd1a0d31 100644
--- a/components/mus/ws/display_binding.cc
+++ b/components/mus/ws/display_binding.cc
@@ -6,6 +6,7 @@
#include "components/mus/ws/connection_manager.h"
#include "components/mus/ws/display.h"
+#include "components/mus/ws/window_manager_access_policy.h"
#include "components/mus/ws/window_tree.h"
#include "mojo/shell/public/interfaces/connector.mojom.h"
@@ -25,8 +26,9 @@ DisplayBindingImpl::DisplayBindingImpl(mojom::WindowTreeHostRequest request,
DisplayBindingImpl::~DisplayBindingImpl() {}
WindowTree* DisplayBindingImpl::CreateWindowTree(ServerWindow* root) {
- WindowTree* tree =
- connection_manager_->EmbedAtWindow(root, user_id_, std::move(client_));
+ WindowTree* tree = connection_manager_->EmbedAtWindow(
+ root, user_id_, std::move(client_),
+ make_scoped_ptr(new WindowManagerAccessPolicy));
tree->ConfigureWindowManager();
return tree;
}
« no previous file with comments | « components/mus/ws/default_access_policy.cc ('k') | components/mus/ws/window_manager_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698