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

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

Issue 2306003002: Set name for WindowTree of WindowManager (Closed)
Patch Set: Set name for WindowTree of WindowManager Created 4 years, 3 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
« services/ui/service.cc ('K') | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 058cf744ccfa9593f1b71e5bcb579f1b0b123e86..b76552f5e4b7210d9baff0e1ad7ea8697728f003 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -119,6 +119,7 @@ void WindowServer::AddTree(std::unique_ptr<WindowTree> tree_impl_ptr,
WindowTree* WindowServer::CreateTreeForWindowManager(
const UserId& user_id,
+ const std::string& client_name,
mojom::WindowTreeRequest window_tree_request,
mojom::WindowTreeClientPtr window_tree_client) {
std::unique_ptr<WindowTree> window_tree(new WindowTree(
@@ -133,6 +134,7 @@ WindowTree* WindowServer::CreateTreeForWindowManager(
std::move(window_tree_client)));
}
WindowTree* window_tree_ptr = window_tree.get();
+ window_tree->set_name(client_name);
AddTree(std::move(window_tree), std::move(window_tree_binding), nullptr);
window_tree_ptr->ConfigureWindowManager();
return window_tree_ptr;
« services/ui/service.cc ('K') | « services/ui/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698