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

Unified Diff: chromeos/dbus/fake_power_manager_client.h

Issue 240343004: chromeos: Update IdleActionImminent and SuspendDone handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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: chromeos/dbus/fake_power_manager_client.h
diff --git a/chromeos/dbus/fake_power_manager_client.h b/chromeos/dbus/fake_power_manager_client.h
index dd0cd2642136c44b22f4ba23bf4bd740dd297b82..c40dc183b741110db4d64954e3274e5600a97b5d 100644
--- a/chromeos/dbus/fake_power_manager_client.h
+++ b/chromeos/dbus/fake_power_manager_client.h
@@ -63,14 +63,10 @@ class FakePowerManagerClient : public PowerManagerClient {
virtual base::Closure GetSuspendReadinessCallback() OVERRIDE;
virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE;
- // Emulates that the dbus server sends a message "SuspendImminent" to the
- // client.
+ // Emulates the power manager announcing that the system is starting or
+ // completing a suspend attempt.
void SendSuspendImminent();
-
- // Emulates that the dbus server sends a message "SuspendStateChanged" to the
- // client.
- void SendSuspendStateChanged(
- const power_manager::SuspendState& suspend_state);
+ void SendSuspendDone();
private:
ObserverList<Observer> observers_;
@@ -78,9 +74,6 @@ class FakePowerManagerClient : public PowerManagerClient {
// Last policy passed to SetPolicy().
power_manager::PowerManagementPolicy policy_;
- // Last time passed to a SUSPEND_TO_MEMORY call to SendSuspendStateChanged().
- base::Time last_suspend_wall_time_;
-
// Number of times that RequestRestart() has been called.
int num_request_restart_calls_;

Powered by Google App Engine
This is Rietveld 408576698