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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. 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: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index 7eaebc3a2c137bd3530c78be35a8492b022a7417..2e995c809f8aca0c33af2e0ea40c276ea886078c 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -1359,7 +1359,7 @@ void ChromeLauncherController::OnDisplayConfigurationChanged() {
// Because it might be called by some operations, like crbug.com/627040
// rotating screen.
ash::WmShelf* shelf =
- ash::WmShelf::ForWindow(ash::ShellPort::Get()->GetPrimaryRootWindow());
+ ash::WmShelf::ForWindow(ash::Shell::GetPrimaryRootWindow());
if (shelf->alignment() != ash::SHELF_ALIGNMENT_BOTTOM_LOCKED)
SetShelfBehaviorsFromPrefs();
}

Powered by Google App Engine
This is Rietveld 408576698