Index: ui/aura/window_unittest.cc |
diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc |
index 96cd670b917c3c9d6be6ebc3fdcbdf3af222dc28..c0bb6a56a289bcab2ec67866fa586192dd5b2f6a 100644 |
--- a/ui/aura/window_unittest.cc |
+++ b/ui/aura/window_unittest.cc |
@@ -2231,7 +2231,6 @@ |
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)); |
@@ -2245,6 +2244,7 @@ |
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 |