| 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()
|
|
|