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

Unified Diff: ui/views/mus/mus_client.cc

Issue 2559703003: Converts WindowTreeClientTest to be in terms of aura (Closed)
Patch Set: feedback Created 4 years 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/ws/window_server_test_base.h ('K') | « ui/views/mus/mus_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 93b437ed81f00f1888b8102e2a0290c9ad76d3fa..0bbe77d0a96e2eb63b212a8657cc5e9393ed201f 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -212,10 +212,10 @@ void MusClient::OnEmbed(
void MusClient::OnLostConnection(aura::WindowTreeClient* client) {}
-void MusClient::OnEmbedRootDestroyed(aura::Window* root) {
- // Not called for MusClient as WindowTreeClient isn't created by
- // way of an Embed().
- NOTREACHED();
+void MusClient::OnEmbedRootDestroyed(
+ aura::WindowTreeHostMus* window_tree_host) {
+ static_cast<DesktopWindowTreeHostMus*>(window_tree_host)
+ ->ServerDestroyedWindow();
}
void MusClient::OnPointerEventObserved(const ui::PointerEvent& event,
« services/ui/ws/window_server_test_base.h ('K') | « ui/views/mus/mus_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698