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

Unified Diff: chromeos/dbus/power_manager_client.cc

Issue 507803002: chromeos: Clear suspend state information if powerd restarts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.cc
diff --git a/chromeos/dbus/power_manager_client.cc b/chromeos/dbus/power_manager_client.cc
index 56efcf1d3bf86b456323bf5a7f373debcd948e33..45cce502946169789b0dec4c70c8b1c079c008ff 100644
--- a/chromeos/dbus/power_manager_client.cc
+++ b/chromeos/dbus/power_manager_client.cc
@@ -347,6 +347,9 @@ class PowerManagerClientImpl : public PowerManagerClient {
<< (old_owner.empty() ? "[none]" : old_owner.c_str())
<< ", new owner is "
<< (new_owner.empty() ? "[none]" : new_owner.c_str()) << ")";
+ suspend_is_pending_ = false;
+ pending_suspend_id_ = -1;
+ suspending_from_dark_resume_ = false;
if (!new_owner.empty()) {
VLOG(1) << "Sending initial state to power manager";
RegisterSuspendDelays();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698