Index: ash/wm/visibility_controller_unittest.cc |
diff --git a/ash/wm/visibility_controller_unittest.cc b/ash/wm/visibility_controller_unittest.cc |
index 8a2f0281f2f2644dc0ef851a93b544792d3e6f72..a385edcd24790e8ae065de62fe2b430e58ad0f07 100644 |
--- a/ash/wm/visibility_controller_unittest.cc |
+++ b/ash/wm/visibility_controller_unittest.cc |
@@ -22,8 +22,7 @@ TEST_F(VisibilityControllerTest, AnimateHideDoesntHideWindowLayer) { |
// We cannot disable animations for this test. |
ui::LayerAnimator::set_disable_animations_for_test(false); |
- scoped_ptr<aura::Window> container( |
- aura::test::CreateTestWindowWithId(-1, NULL)); |
+ scoped_ptr<aura::Window> container(CreateTestWindowInShellWithId(-1)); |
SetChildWindowVisibilityChangesAnimated(container.get()); |
aura::test::TestWindowDelegate d; |