Index: ash/shell_unittest.cc |
diff --git a/ash/shell_unittest.cc b/ash/shell_unittest.cc |
index f4a8488cf45ef3cbc249f5304b411bdc2c2bbbfb..c461f6617c4664f9d9ab4f7e0bf7d57c6fd0a537 100644 |
--- a/ash/shell_unittest.cc |
+++ b/ash/shell_unittest.cc |
@@ -352,9 +352,7 @@ TEST_F(ShellTest, LockScreenClosesActiveMenu) { |
std::unique_ptr<ui::SimpleMenuModel> menu_model( |
new ui::SimpleMenuModel(&menu_delegate)); |
menu_model->AddItem(0, base::ASCIIToUTF16("Menu item")); |
- views::Widget* widget = ShellPort::Get() |
- ->GetPrimaryRootWindow() |
- ->GetRootWindowController() |
+ views::Widget* widget = Shell::GetPrimaryRootWindowController() |
->wallpaper_widget_controller() |
->widget(); |
std::unique_ptr<views::MenuRunner> menu_runner( |