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

Unified Diff: ash/wm/window_state.cc

Issue 101013002: Make sure WindowObservers are removed from window before destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix shutdown order 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
« no previous file with comments | « ash/wm/window_state.h ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 071307fd5437e36a1f5c2c2ded4ec3d2bb919b24..0a47384717531ce788a517b17119d15ac6506220 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -270,10 +270,6 @@ void WindowState::OnWindowPropertyChanged(aura::Window* window,
}
}
-void WindowState::OnWindowDestroying(aura::Window* window) {
- window_->RemoveObserver(this);
-}
-
void WindowState::SnapWindow(WindowShowType left_or_right,
const gfx::Rect& bounds) {
// Compute the bounds that the window will restore to. If the window does not
« no previous file with comments | « ash/wm/window_state.h ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698