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

Unified Diff: components/mus/ws/window_tree_factory.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_tree.cc ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_factory.cc
diff --git a/components/mus/ws/window_tree_factory.cc b/components/mus/ws/window_tree_factory.cc
index e805ab6b38941b9388d0a3887984fba378de3e1a..53f1bbad0841ae5975ccbeb3659ef3996e0fec96 100644
--- a/components/mus/ws/window_tree_factory.cc
+++ b/components/mus/ws/window_tree_factory.cc
@@ -5,6 +5,7 @@
#include "components/mus/ws/window_tree_factory.h"
#include "components/mus/ws/connection_manager.h"
+#include "components/mus/ws/default_access_policy.h"
#include "components/mus/ws/window_tree.h"
#include "components/mus/ws/window_tree_binding.h"
@@ -26,7 +27,8 @@ void WindowTreeFactory::CreateWindowTree(
mojo::InterfaceRequest<mojom::WindowTree> tree_request,
mojom::WindowTreeClientPtr client) {
scoped_ptr<ws::WindowTree> service(
- new ws::WindowTree(connection_manager_, user_id_, nullptr));
+ new ws::WindowTree(connection_manager_, user_id_, nullptr,
+ make_scoped_ptr(new DefaultAccessPolicy)));
scoped_ptr<ws::DefaultWindowTreeBinding> binding(
new ws::DefaultWindowTreeBinding(service.get(), connection_manager_,
std::move(tree_request),
« no previous file with comments | « components/mus/ws/window_tree.cc ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698