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

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

Issue 2739763003: Moves maintaining ShellObservers back to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/system/chromeos/power/video_activity_notifier.cc ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ash/system/chromeos/power/video_activity_notifier.cc ('k') | ash/virtual_keyboard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698