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

Unified Diff: services/ui/ws/window_manager_window_tree_factory.cc

Issue 2829733002: mus: Changes SetDisplayRoot() to create actual display (Closed)
Patch Set: screenmanagerforwarding only ozone Created 3 years, 8 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
Index: services/ui/ws/window_manager_window_tree_factory.cc
diff --git a/services/ui/ws/window_manager_window_tree_factory.cc b/services/ui/ws/window_manager_window_tree_factory.cc
index 0f9589b8176fa4dd47c6dd47b43877c19845f420..89711f2de86f19de85353f30fde2af3c09f8d1d5 100644
--- a/services/ui/ws/window_manager_window_tree_factory.cc
+++ b/services/ui/ws/window_manager_window_tree_factory.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "services/ui/ws/window_manager_window_tree_factory_set.h"
#include "services/ui/ws/window_server.h"
+#include "services/ui/ws/window_server_delegate.h"
#include "services/ui/ws/window_tree.h"
namespace ui {
@@ -38,6 +39,10 @@ void WindowManagerWindowTreeFactory::CreateWindowTree(
if (binding_.is_bound())
binding_.Close();
+ window_manager_window_tree_factory_set_->window_server()
+ ->delegate()
+ ->OnWillCreateTreeForWindowManager(automatically_create_display_roots);
kylechar 2017/04/19 18:06:08 Will this work with multiple connected WMs? I know
sky 2017/04/19 19:30:03 You are correct it would be problematic to have mu
kylechar 2017/04/19 19:47:09 Ah, right it ignores it. Gotcha.
+
SetWindowTree(GetWindowServer()->CreateTreeForWindowManager(
user_id_, std::move(window_tree_request), std::move(window_tree_client),
automatically_create_display_roots));

Powered by Google App Engine
This is Rietveld 408576698