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

Unified Diff: chrome/browser/chromeos/system/ash_system_tray_delegate.cc

Issue 11824005: chromeos: Update more code to get signals from powerd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « chrome/browser/chromeos/power/resume_observer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system/ash_system_tray_delegate.cc
diff --git a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
index 64ef92c61d8c01a46d949570c467563157749761..d71f6516e56c070def3feb83e04ee841a56d689f 100644
--- a/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
+++ b/chrome/browser/chromeos/system/ash_system_tray_delegate.cc
@@ -1078,9 +1078,14 @@ class SystemTrayDelegate : public ash::SystemTrayDelegate,
GetSystemTrayNotifier()->NotifyPowerStatusChanged(power_status);
}
+ // Overridden from PowerManagerClient::Observer:
+ virtual void SystemResumed(const base::TimeDelta& sleep_duration) OVERRIDE {
+ GetSystemTrayNotifier()->NotifyRefreshClock();
+ }
+
// Overridden from RootPowerManagerObserver:
virtual void OnResume(const base::TimeDelta& sleep_duration) OVERRIDE {
- GetSystemTrayNotifier()->NotifyRefreshClock();
+ SystemResumed(sleep_duration);
}
// Overridden from SessionManagerClient::Observer.
« no previous file with comments | « chrome/browser/chromeos/power/resume_observer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698