Index: ash/wm/header_painter_unittest.cc |
diff --git a/ash/wm/header_painter_unittest.cc b/ash/wm/header_painter_unittest.cc |
index 469191178bae2da32bfd5e5d6b30fcaa4548a0aa..a6e851574f1c8a67c16d4f1bfd721816aab43a3a 100644 |
--- a/ash/wm/header_painter_unittest.cc |
+++ b/ash/wm/header_painter_unittest.cc |
@@ -17,6 +17,7 @@ |
#include "grit/ash_resources.h" |
#include "testing/gtest/include/gtest/gtest.h" |
#include "ui/aura/client/aura_constants.h" |
+#include "ui/aura/client/window_tree_client.h" |
#include "ui/aura/root_window.h" |
#include "ui/aura/window_observer.h" |
#include "ui/base/hit_test.h" |
@@ -395,8 +396,8 @@ TEST_F(HeaderPainterTest, UseSoloWindowHeaderNotDrawn) { |
scoped_ptr<aura::Window> window(new aura::Window(NULL)); |
window->SetType(aura::client::WINDOW_TYPE_NORMAL); |
window->Init(ui::LAYER_NOT_DRAWN); |
- window->SetDefaultParentByRootWindow( |
- widget->GetNativeWindow()->GetRootWindow(), gfx::Rect()); |
+ aura::client::ParentWindowWithContext(window.get(), widget->GetNativeWindow(), |
+ gfx::Rect()); |
window->Show(); |
// Despite two windows, the first window should still be considered "solo" |