Fire notifications when reboot is requested, not scheduled
This CL fixes two bugs in the original implementation of the
runtime.onRestartRequired() notification:
1) Fire a notification when a reboot is requested, not scheduled.
2) Fix race at start-up, ensuring that reboots scheduled before
observer registration are not missed.
BUG=
433811
TEST=Updated and extended unit and browser tests
Committed:
https://crrev.com/89aa682cd901d837e84369d65480fa0806923ea1
Cr-Commit-Position: refs/heads/master@{#304838}