Index: ash/shell_unittest.cc |
diff --git a/ash/shell_unittest.cc b/ash/shell_unittest.cc |
index b762abb5f636a62d17983de10e266107099a3472..294a7727be25657c634770815f6a82f87f6eae5c 100644 |
--- a/ash/shell_unittest.cc |
+++ b/ash/shell_unittest.cc |
@@ -359,7 +359,7 @@ TEST_F(ShellTest, ToggleAutoHide) { |
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
window->SetType(aura::client::WINDOW_TYPE_NORMAL); |
window->Init(ui::LAYER_TEXTURED); |
- window->SetParent(NULL); |
+ AddToRootWindow(window.get()); |
window->Show(); |
wm::ActivateWindow(window.get()); |