| Index: ash/shelf/shelf_widget_unittest.cc
|
| diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
|
| index 56799af58bffe12f4c802b4c1ee51980393ed18b..403cc204a5b1d26c03429f781032ba1593f549f2 100644
|
| --- a/ash/shelf/shelf_widget_unittest.cc
|
| +++ b/ash/shelf/shelf_widget_unittest.cc
|
| @@ -42,7 +42,7 @@ typedef test::AshTestBase ShelfWidgetTest;
|
| void TestLauncherAlignment(aura::Window* root,
|
| wm::ShelfAlignment alignment,
|
| const std::string& expected) {
|
| - Shell::GetInstance()->SetShelfAlignment(alignment, root);
|
| + Shelf::ForWindow(root)->SetAlignment(alignment);
|
| display::Screen* screen = display::Screen::GetScreen();
|
| EXPECT_EQ(expected,
|
| screen->GetDisplayNearestWindow(root).work_area().ToString());
|
| @@ -55,9 +55,7 @@ void TestLauncherAlignment(aura::Window* root,
|
| #define MAYBE_TestAlignment TestAlignment
|
| #endif
|
| TEST_F(ShelfWidgetTest, MAYBE_TestAlignment) {
|
| - Shelf* shelf = Shelf::ForPrimaryDisplay();
|
| UpdateDisplay("400x400");
|
| - ASSERT_TRUE(shelf);
|
| {
|
| SCOPED_TRACE("Single Bottom");
|
| TestLauncherAlignment(Shell::GetPrimaryRootWindow(),
|
|
|