[NetInfo] Fix memory leak

RenderProcessHosts::AllHostsIterator is returning hosts that don't have
a mojo client on the other end. And we kept sending messages on that
channel which got buffered in memory each time the network changed.

Temporary hack solution: Don't send the mojo message if the render
client is dead or uninitialized.

This is a hacky fix in line with others in https://crbug.com/813045.

Bug: 813045
Change-Id: Ibaffd1bf0f62eb78335d0927cc11b97a3ebfa132
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1483936
Reviewed-by: Etienne Bergeron <etienneb@chromium.org>
Commit-Queue: Josh Karlin <jkarlin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637305}
1 file changed