Add NetworkState::IsActive()

Frequently in the UI, we care about "active" networks. Mostly this
just includes networks that are connecting or connected, but we also
care about cellular networks that are activating, and may want to
expand this further in the future. This CL introduces a new IsActive()
method for NetworkState, and uses it to more accurately update the
network lists provided to the UI.

Expected changes to the UI: None in the current UI, but activating
Cellular networks will be included in the active list, even if not
connected (this is an edge case that probably does not exist in
practice).

Bug: 862420
Change-Id: I470df5abeef2e96ce2d4cc9a82d0efc78aa862b5
Reviewed-on: https://chromium-review.googlesource.com/c/1448736
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629380}
5 files changed