Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: net/base/network_change_notifier.cc

Issue 2081493002: Obtain WiFi SSID on Android using Android APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index 0cfaaa38d259db9be27343bf487aaf3b88d1a6a0..5dabd51ea10f23204e20789275cfdfba9e18ba74 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -547,6 +547,13 @@ NetworkChangeNotifier::GetConnectionType() {
}
// static
+std::string NetworkChangeNotifier::GetWiFiSSID() {
+ return g_network_change_notifier
+ ? g_network_change_notifier->GetCurrentWiFiSSID()
+ : std::string();
+}
+
+// static
void NetworkChangeNotifier::GetMaxBandwidthAndConnectionType(
double* max_bandwidth_mbps,
ConnectionType* connection_type) {
@@ -998,6 +1005,10 @@ void NetworkChangeNotifier::GetCurrentMaxBandwidthAndConnectionType(
: GetMaxBandwidthForConnectionSubtype(SUBTYPE_UNKNOWN);
}
+std::string NetworkChangeNotifier::GetCurrentWiFiSSID() const {
+ return std::string();
+}
+
bool NetworkChangeNotifier::AreNetworkHandlesCurrentlySupported() const {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698