commit | 65f1da02c7a366893c9fe5d448ed3c8db73d5b4e | [log] [tgz] |
---|---|---|
author | Daniel Erat <[email protected]> | Fri Jun 27 22:05:38 2014 -0700 |
committer | chrome-internal-fetch <[email protected]> | Wed Jul 02 22:07:48 2014 +0000 |
tree | dddda2bec4f072e89f66c349c00c555811250087 | |
parent | 48415f1f6c6c356bfa9ac85b76d8ebcf053f7157 [diff] |
update_engine: Use powerd for rebooting. Make update_engine call powerd's RequestRestart method to restart the system instead of running "shutdown -r now" directly. This avoids races where Chrome asks powerd to shut down the system but then update_engine sees that an update has been applied and reboots it instead. BUG=chromium:372074 TEST=applied an update and requested a reboot from the UI; checked that the request was logged by powerd. held the power button to shut down while an update was pending and checked that the system shut down instead of rebooting. built update_engine with the power_management USE flag unset and checked that it was still able to reboot the system. CQ-DEPEND=I73f67cca9875b00bd944e4ff9779ad24fc4cd738 CQ-DEPEND=I2888fdde50a71460b74f2ef33d63ac00c5938626 Change-Id: Ic5f7c33c3f7fc5fe92ac8a2e1800830678cac235 Reviewed-on: https://chromium-review.googlesource.com/206074 Tested-by: Daniel Erat <[email protected]> Reviewed-by: Chris Sosa <[email protected]> Commit-Queue: Daniel Erat <[email protected]>