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

Unified Diff: ash/system/chromeos/power/video_activity_notifier.cc

Issue 2739763003: Moves maintaining ShellObservers back to Shell (Closed)
Patch Set: 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
Index: ash/system/chromeos/power/video_activity_notifier.cc
diff --git a/ash/system/chromeos/power/video_activity_notifier.cc b/ash/system/chromeos/power/video_activity_notifier.cc
index 3c194264c5b4dfc7552544fb3c34e86f0b2d8602..283265a070924f0514be15256d479aaab50ca1e7 100644
--- a/ash/system/chromeos/power/video_activity_notifier.cc
+++ b/ash/system/chromeos/power/video_activity_notifier.cc
@@ -26,14 +26,14 @@ VideoActivityNotifier::VideoActivityNotifier(VideoDetector* detector)
screen_is_locked_(
Shell::GetInstance()->session_state_delegate()->IsScreenLocked()) {
detector_->AddObserver(this);
- WmShell::Get()->AddShellObserver(this);
+ Shell::GetInstance()->AddShellObserver(this);
MaybeNotifyPowerManager();
UpdateTimer();
}
VideoActivityNotifier::~VideoActivityNotifier() {
- WmShell::Get()->RemoveShellObserver(this);
+ Shell::GetInstance()->RemoveShellObserver(this);
detector_->RemoveObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698