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

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

Issue 693643004: Make UserActivityDetector a singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash45
Patch Set: Created 6 years, 2 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/power_event_observer.cc
diff --git a/ash/system/chromeos/power/power_event_observer.cc b/ash/system/chromeos/power/power_event_observer.cc
index 103d2dfc7966fefcbb67ffa7f7bcfd261cc9ccb7..610094df7a559c847c7afb4f0848c2c52266c224 100644
--- a/ash/system/chromeos/power/power_event_observer.cc
+++ b/ash/system/chromeos/power/power_event_observer.cc
@@ -50,7 +50,7 @@ void PowerEventObserver::SuspendImminent() {
RequestLockScreen();
}
- shell->user_activity_detector()->OnDisplayPowerChanging();
+ wm::UserActivityDetector::Get()->OnDisplayPowerChanging();
shell->display_configurator()->SuspendDisplays();
}

Powered by Google App Engine
This is Rietveld 408576698