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

Unified Diff: ash/shelf/shelf_widget_unittest.cc

Issue 2911393002: Nix GetRootWindowController, use RootWindowController::ForWindow. (Closed)
Patch Set: Sync and rebase AGAIN 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
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget_unittest.cc
diff --git a/ash/shelf/shelf_widget_unittest.cc b/ash/shelf/shelf_widget_unittest.cc
index 0b81b03ed191f6282c1d335a72fac9f542c8713f..98ff8ce0e4773f44f29ad5591c676db5bf740f3f 100644
--- a/ash/shelf/shelf_widget_unittest.cc
+++ b/ash/shelf/shelf_widget_unittest.cc
@@ -37,7 +37,7 @@ ShelfLayoutManager* GetShelfLayoutManager() {
void TestLauncherAlignment(aura::Window* root,
ShelfAlignment alignment,
const gfx::Rect& expected) {
- GetRootWindowController(root)->shelf()->SetAlignment(alignment);
+ Shelf::ForWindow(root)->SetAlignment(alignment);
EXPECT_EQ(expected.ToString(), display::Screen::GetScreen()
->GetDisplayNearestWindow(root)
.work_area()
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698