In order to help identify connected networks for discovery, the DiscoveryNetworkMonitor ( crbug.com/698943 crrev.com/2750453002/) needs a way to get the SSID for connected Wifi interfaces. While net::GetWifiSSID provides one form of this, it isn't implemented for Mac. wifi::WifiService::GetConnectedNetworkSSID provides the same functionality as net::GetWifiSSID but requires first creating a WifiService object.
It would be preferable to get the Wifi SSID by interface (i.e. allow multiple Wifi interfaces to be up, with different associated SSIDs).
Comment 1 by bugdroid1@chromium.org
, Jul 7 2017