Fix bug where Update screen repeatedly appears.
This happens only sometimes.
It also usually starts only after 5-10 minutes of inactivity.
The underlying cause is that NetworkScreen::StopWaitingForConnection
is wired directly to NetworkScreen::OnContinueButtonPressed to
enable zero-touch enrollment. So when additional networks are
detected after the initial one, OnContinueButtonPressed is called
multiple times. This leads to WizardController showing the
UpdateScreen multiple times. I changed the code so that this path
can be followed only once.
BUG=574923
BUG=b/31618435
TEST=browser test
Review-Url: https://codereview.chromium.org/2531923002
Cr-Commit-Position: refs/heads/master@{#449368}
5 files changed