Make Hands-Off Zero-Touch Enrollment compatibile with tests
Specifically, the automatic nature of Hands-Off Enrollment leads to
the DUT performing an update check after reboot which interferes
with autoupdate_EndToEndTest. This CL fixes that issue.
It does so by instructing the UpdateScreen to skip checking for updates
if both of the following conditions hold:
1. The previous update check initiated by the UpdateScreen did not result
in an update.
2. This previous update check occurred during the last hour.
BUG=
chromium:710716
TEST=unit test
Review-Url:
https://codereview.chromium.org/2870203003
Cr-Commit-Position: refs/heads/master@{#473065}
Committed:
https://chromium.googlesource.com/chromium/src/+/0e9353d37e60a871304084a1b34222062c4803e9