[CrOS Network] Update quick settings UI when Wi-Fi is turned on.

Previously, we would only update the settings UI immediately when Wi-Fi
is turned off; in all other cases, we would batch updates and wait up to
1 second before showing the update in the UI. This led to a confusing UI
in which settings would display the update immediately but quick
settings would not.

This CL fixes this issue by also updating the UI immediately when Wi-Fi
is turned on as well as off. Additionally, because this UI contains a
toggle for Mobile data as well, this CL updates the UI immediately for
changes in Cellular/Tether status.

Bug: 917325
Change-Id: I6228909c99de08774bfc9599c07b87ecd6dd20bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534153
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#643156}
2 files changed