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

Unified Diff: net/base/network_change_notifier.cc

Issue 899573002: Add WiFi SSID getter to NetworkChangeNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 5 years, 11 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
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index ec45a4e2ea458e0887e0fcad68bf56bf29c1d1a0..c756c5ebfe9ff540155c1dafd3ed64b0b47a25ac 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -48,6 +48,7 @@ class MockNetworkChangeNotifier : public NetworkChangeNotifier {
ConnectionType GetCurrentConnectionType() const override {
return CONNECTION_UNKNOWN;
}
+ std::string GetCurrentWiFiSSID() const override { return ""; }
};
} // namespace
@@ -536,6 +537,12 @@ NetworkChangeNotifier::GetConnectionType() {
CONNECTION_UNKNOWN;
}
+std::string NetworkChangeNotifier::GetWiFiSSID() {
+ return g_network_change_notifier
+ ? g_network_change_notifier->GetCurrentWiFiSSID()
+ : "";
+}
+
// static
double NetworkChangeNotifier::GetMaxBandwidth() {
return g_network_change_notifier ?
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698