Add a function to get Wifi SSID to net_util.
commitbc462ea514cba4bec764f5ae6a6593d6c8e57868
authormeacer <meacer@chromium.org>
Tue, 17 Feb 2015 19:32:53 +0000 (17 11:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Feb 2015 19:33:32 +0000 (17 19:33 +0000)
tree9f9b508609c4aad338736672cb48c0d13ec69904
parentff13143269bcc9010afc9490fc83147d5fad5a81
Add a function to get Wifi SSID to net_util.

This CL adds |GetWifiSSID| to net_util to get the SSID of the associated
WiFi access point's, if there is one. The function is currently only
implemented for Linux (including ChromeOS and Android). On Linux, it retrieves
WiFi SSIDs for each interface and if all interfaces have the same SSID, returns it as
the current SSID. This is similar to what https://codereview.chromium.org/739983005/ does.

BUG=451272

Review URL: https://codereview.chromium.org/878513008

Cr-Commit-Position: refs/heads/master@{#316623}
net/base/net_util.h
net/base/net_util_linux.cc
net/base/net_util_linux.h
net/base/net_util_mac.cc
net/base/net_util_posix.cc
net/base/net_util_unittest.cc
net/base/net_util_win.cc