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

Unified Diff: net/base/network_change_notifier.cc

Issue 328793002: Add wifi AP info to system profile metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 d451e075aa1e79289b5311ab4d03602e8f9d9a56..2d8aff01bdc4124c1ec87f0b54b737cd353b3b7e 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -400,6 +400,13 @@ class NetworkChangeNotifier::NetworkState {
DnsConfig dns_config_;
};
+NetworkChangeNotifier::WifiAccessPointInfo::WifiAccessPointInfo()
+ : security(WIFI_SECURITY_UNKNOWN) {
+}
+
+NetworkChangeNotifier::WifiAccessPointInfo::~WifiAccessPointInfo() {
+}
+
NetworkChangeNotifier::NetworkChangeCalculatorParams::
NetworkChangeCalculatorParams() {
}
@@ -526,6 +533,11 @@ NetworkChangeNotifier* NetworkChangeNotifier::Create() {
#endif
}
+bool NetworkChangeNotifier::GetCurrentWifiAccessPointInfo(
+ NetworkChangeNotifier::WifiAccessPointInfo* info) {
+ return false;
+}
+
// static
NetworkChangeNotifier::ConnectionType
NetworkChangeNotifier::GetConnectionType() {
@@ -535,6 +547,13 @@ NetworkChangeNotifier::GetConnectionType() {
}
// static
+bool NetworkChangeNotifier::GetWifiAccessPointInfo(WifiAccessPointInfo* info) {
+ return g_network_change_notifier ?
+ g_network_change_notifier->GetCurrentWifiAccessPointInfo(info) :
+ false;
+}
+
+// static
void NetworkChangeNotifier::GetDnsConfig(DnsConfig* config) {
if (!g_network_change_notifier) {
*config = DnsConfig();
« chromeos/network/network_change_notifier_chromeos.cc ('K') | « net/base/network_change_notifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698