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

Unified Diff: chrome/browser/chromeos/dbus/display_power_service_provider.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
Index: chrome/browser/chromeos/dbus/display_power_service_provider.cc
diff --git a/chrome/browser/chromeos/dbus/display_power_service_provider.cc b/chrome/browser/chromeos/dbus/display_power_service_provider.cc
index fb5dc2df1cbcfca9828409ca0a683918c7dcf5d8..507e9a72eb1abbed835394e8ebf585811a7609d2 100644
--- a/chrome/browser/chromeos/dbus/display_power_service_provider.cc
+++ b/chrome/browser/chromeos/dbus/display_power_service_provider.cc
@@ -57,8 +57,7 @@ void DisplayPowerServiceProvider::SetDisplayPower(
// we suspend may trigger a mouse move, which would then be incorrectly
// reported as user activity. Let the UserActivityDetector
// know so that it can ignore such events.
- ash::Shell::GetInstance()->user_activity_detector()->
- OnDisplayPowerChanging();
+ wm::UserActivityDetector::Get()->OnDisplayPowerChanging();
DisplayPowerState state = static_cast<DisplayPowerState>(int_state);
ash::Shell::GetInstance()->display_configurator()->SetDisplayPower(
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_mode_idle_app_name_notification.cc ('k') | chrome/browser/chromeos/idle_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698