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

Unified Diff: ash/system/chromeos/rotation/tray_rotation_lock.cc

Issue 2113053003: Moves Shell::maximize_mode_controller() to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: order Created 4 years, 6 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/system/chromeos/rotation/tray_rotation_lock.cc
diff --git a/ash/system/chromeos/rotation/tray_rotation_lock.cc b/ash/system/chromeos/rotation/tray_rotation_lock.cc
index 07bdef53615fc6fda974965eebe43e1c1c53c158..aa1e4b913f46451a51038352779a14c1fd56a66c 100644
--- a/ash/system/chromeos/rotation/tray_rotation_lock.cc
+++ b/ash/system/chromeos/rotation/tray_rotation_lock.cc
@@ -45,7 +45,7 @@ class RotationLockDefaultView : public TrayItemMore, public ShellObserver {
RotationLockDefaultView::RotationLockDefaultView(SystemTrayItem* owner)
: TrayItemMore(owner, false) {
UpdateImage();
- SetVisible(Shell::GetInstance()
+ SetVisible(WmShell::Get()
->maximize_mode_controller()
->IsMaximizeModeWindowManagerEnabled());
WmShell::Get()->AddShellObserver(this);
@@ -140,7 +140,7 @@ bool TrayRotationLock::GetInitialVisibility() {
bool TrayRotationLock::ShouldBeVisible() {
return OnPrimaryDisplay() &&
- Shell::GetInstance()
+ WmShell::Get()
->maximize_mode_controller()
->IsMaximizeModeWindowManagerEnabled() &&
Shell::GetInstance()

Powered by Google App Engine
This is Rietveld 408576698