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

Unified Diff: ui/aura/window_unittest.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: ui/aura/window_unittest.cc
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
index a3db358e867170ecbc35713d9c131601a05e49f8..f8559d29d3883a47cf8f786eeaea738cc9664f74 100644
--- a/ui/aura/window_unittest.cc
+++ b/ui/aura/window_unittest.cc
@@ -1957,6 +1957,7 @@ class WindowObserverTest : public WindowTest,
virtual void OnWindowDestroyed(Window* window) OVERRIDE {
EXPECT_FALSE(window->parent());
destroyed_count_++;
+ aura::WindowObserver::OnWindowDestroyed(window);
}
virtual void OnWindowPropertyChanged(Window* window,

Powered by Google App Engine
This is Rietveld 408576698