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

Unified Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1126933004: Allow switching between extended and unified (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « ash/display/mirror_window_controller.cc ('k') | ash/system/chromeos/tray_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_unified.cc
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc
index d213c87401dd536ebedb07c68ace71cb44364031..b36223ffcaf72d332135108b107374812487cbc5 100644
--- a/ash/host/ash_window_tree_host_unified.cc
+++ b/ash/host/ash_window_tree_host_unified.cc
@@ -53,6 +53,9 @@ AshWindowTreeHostUnified::AshWindowTreeHostUnified(
}
AshWindowTreeHostUnified::~AshWindowTreeHostUnified() {
+ for (auto* ash_host : mirroring_hosts_)
+ ash_host->AsWindowTreeHost()->window()->RemoveObserver(this);
+
DestroyCompositor();
DestroyDispatcher();
}
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ash/system/chromeos/tray_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698