Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1303)

Unified Diff: ash/app_list/app_list_presenter_delegate_unittest.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Sync and rebase. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/app_list/app_list_presenter_delegate_unittest.cc
diff --git a/ash/app_list/app_list_presenter_delegate_unittest.cc b/ash/app_list/app_list_presenter_delegate_unittest.cc
index 743e720e83701a0095af3bb18cf1e40f7242f59b..bb195a63473d722ed685c41aad9f202f5bf9e81c 100644
--- a/ash/app_list/app_list_presenter_delegate_unittest.cc
+++ b/ash/app_list/app_list_presenter_delegate_unittest.cc
@@ -148,13 +148,14 @@ TEST_P(AppListPresenterDelegateTest, NonPrimaryDisplay) {
// Set up a screen with two displays (horizontally adjacent).
UpdateDisplay("1024x768,1024x768");
- std::vector<WmWindow*> root_windows = ShellPort::Get()->GetAllRootWindows();
+ aura::Window::Windows root_windows = Shell::GetAllRootWindows();
ASSERT_EQ(2u, root_windows.size());
- WmWindow* secondary_root = root_windows[1];
+ aura::Window* secondary_root = root_windows[1];
EXPECT_EQ("1024,0 1024x768", secondary_root->GetBoundsInScreen().ToString());
- app_list_presenter_impl()->Show(
- secondary_root->GetDisplayNearestWindow().id());
+ app_list_presenter_impl()->Show(display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(secondary_root)
+ .id());
EXPECT_TRUE(app_list_presenter_impl()->GetTargetVisibility());
// Remove the secondary display. Shouldn't crash (http://crbug.com/368990).

Powered by Google App Engine
This is Rietveld 408576698