Index: ui/aura/window_unittest.cc |
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc |
index c0bb6a56a289bcab2ec67866fa586192dd5b2f6a..96cd670b917c3c9d6be6ebc3fdcbdf3af222dc28 100644 |
--- a/ui/aura/window_unittest.cc |
+++ b/ui/aura/window_unittest.cc |
@@ -2231,6 +2231,7 @@ TEST_F(WindowTest, RootWindowSetWhenReparenting) { |
parent1.SetBounds(gfx::Rect(10, 10, 300, 300)); |
parent2.SetBounds(gfx::Rect(20, 20, 300, 300)); |
+ BoundsChangedWindowObserver observer; |
Window child(NULL); |
child.Init(aura::WINDOW_LAYER_NOT_DRAWN); |
child.SetBounds(gfx::Rect(5, 5, 100, 100)); |
@@ -2244,7 +2245,6 @@ TEST_F(WindowTest, RootWindowSetWhenReparenting) { |
gfx::Rect new_bounds(gfx::Rect(35, 35, 50, 50)); |
child.SetBounds(new_bounds); |
- BoundsChangedWindowObserver observer; |
child.AddObserver(&observer); |
// Reparenting the |child| will cause it to get moved. During this move |