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 2a10c6ddbcc2f2100032c71097a0690235811018..67e7c9ab3194c3bbfc44a8cdbdb931e3c15d0ece 100644 |
--- a/ash/system/chromeos/rotation/tray_rotation_lock.cc |
+++ b/ash/system/chromeos/rotation/tray_rotation_lock.cc |
@@ -93,14 +93,14 @@ RotationLockDefaultView::RotationLockDefaultView(SystemTrayItem* owner) |
SetInkDropMode(InkDropHostView::InkDropMode::ON); |
SetVisible(IsMaximizeModeWindowManagerEnabled()); |
- WmShell::Get()->AddShellObserver(this); |
+ Shell::GetInstance()->AddShellObserver(this); |
if (IsMaximizeModeWindowManagerEnabled()) |
Shell::GetInstance()->screen_orientation_controller()->AddObserver(this); |
} |
RotationLockDefaultView::~RotationLockDefaultView() { |
StopObservingRotation(); |
- WmShell::Get()->RemoveShellObserver(this); |
+ Shell::GetInstance()->RemoveShellObserver(this); |
} |
void RotationLockDefaultView::Update() { |
@@ -160,11 +160,11 @@ TrayRotationLock::TrayRotationLock(SystemTray* system_tray) |
: TrayImageItem(system_tray, |
kSystemTrayRotationLockLockedIcon, |
UMA_ROTATION_LOCK) { |
- WmShell::Get()->AddShellObserver(this); |
+ Shell::GetInstance()->AddShellObserver(this); |
} |
TrayRotationLock::~TrayRotationLock() { |
- WmShell::Get()->RemoveShellObserver(this); |
+ Shell::GetInstance()->RemoveShellObserver(this); |
} |
void TrayRotationLock::OnRotationLockChanged(bool rotation_locked) { |
@@ -189,7 +189,7 @@ void TrayRotationLock::OnMaximizeModeEnded() { |
void TrayRotationLock::DestroyTrayView() { |
StopObservingRotation(); |
- WmShell::Get()->RemoveShellObserver(this); |
+ Shell::GetInstance()->RemoveShellObserver(this); |
TrayImageItem::DestroyTrayView(); |
} |