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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2604453002: Fix WindowTreeClient::RequestClose(window_id). (Closed)
Patch Set: remove non-root case Created 3 years, 11 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 | « no previous file | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index e9d1c0772d7a3ed3e42a9dae278a8516cec18268..3113b6a286244b0037d7f48b2cf2b222495b43c2 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1314,7 +1314,9 @@ void WindowTreeClient::RequestClose(uint32_t window_id) {
if (!window || !IsRoot(window))
return;
- window->GetWindow()->delegate()->OnRequestClose();
sadrul 2017/01/05 02:49:00 I think WindowDelegate::OnRequestClose() can now b
+ // Since the window is the root window, we send close request to the entire
+ // WindowTreeHost.
+ GetWindowTreeHostMus(window->GetWindow())->OnCloseRequest();
}
void WindowTreeClient::OnConnect(ClientSpecificId client_id) {
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698