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

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, 1 month 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/shell.h ('k') | chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698