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

Unified Diff: net/base/network_quality_estimator.cc

Issue 1633733005: Native SSID extraction moved to platform code on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« net/android/network_library.h ('K') | « net/android/network_library.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_quality_estimator.cc
diff --git a/net/base/network_quality_estimator.cc b/net/base/network_quality_estimator.cc
index c67b641101ae0a44f989c5b65b2542502ec8796c..9878f2f3d6a5e3af544557cfc07c91d603d0d6d4 100644
--- a/net/base/network_quality_estimator.cc
+++ b/net/base/network_quality_estimator.cc
@@ -776,9 +776,10 @@ NetworkQualityEstimator::GetCurrentNetworkID() const {
case NetworkChangeNotifier::ConnectionType::CONNECTION_ETHERNET:
break;
case NetworkChangeNotifier::ConnectionType::CONNECTION_WIFI:
-#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || \
- defined(OS_WIN)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN)
network_id.id = GetWifiSSID();
+#elif defined(OS_ANDROID)
+ network_id.id = android::GetCurrentWifiConnectionSsid();
Ryan Sleevi 2016/01/26 20:22:26 DESIGN: Given that network_interfaces is already d
Ryan Hamilton 2016/01/26 20:24:48 Oo! Good idea.
ripp 2016/01/27 12:09:06 Done.
ripp 2016/01/27 12:09:06 Done.
#endif
break;
case NetworkChangeNotifier::ConnectionType::CONNECTION_2G:
« net/android/network_library.h ('K') | « net/android/network_library.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698