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

Unified Diff: ash/wm/always_on_top_controller.cc

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc Created 7 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
Index: ash/wm/always_on_top_controller.cc
diff --git a/ash/wm/always_on_top_controller.cc b/ash/wm/always_on_top_controller.cc
index 44776feb31370046e4d08d971113f81ed61ca670..fcb8d8130f8227dc70d901200f3a38676fa652d8 100644
--- a/ash/wm/always_on_top_controller.cc
+++ b/ash/wm/always_on_top_controller.cc
@@ -66,6 +66,7 @@ void AlwaysOnTopController::OnWindowPropertyChanged(aura::Window* window,
void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) {
if (window == always_on_top_container_)
always_on_top_container_ = NULL;
+ aura::WindowObserver::OnWindowDestroyed(window);
}
} // namespace internal
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/resize_shadow_controller.cc » ('j') | ui/aura/window_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698