Change initial start of polling battery poling to a resume.
This causes the daemon to poll the state of battery on start and signal the
browser that there is information about the battery state to pull. This also
schedules the next poll in 5 seconds since the time values from the first poll
might be bogus and need to be ignored. This is the same behaviour that is used
when the device transitions power state.
BUG=chromium:136885
TEST=Started device and watch the status tray on the login screen. The battery
icon should appear in about of second, instead of taking upto 30 seconds,
with the Calculating estimate and then after 5 seconds should transition to
the correct time estimate.
Change-Id: I8e662b048deacc97059d0d63ccb55e75995118e3
Reviewed-on: https://gerrit.chromium.org/gerrit/31140
Tested-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Daniel Erat <derat@chromium.org>
Commit-Ready: Ryan Harrison <rharrison@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/31348
Reviewed-by: Puneet Kumar <puneetster@chromium.org>
1 file changed