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

Unified Diff: net/android/network_library.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: Refactoring of GetWifiSSID/GetCurrentWifiConnectionSsid 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
Index: net/android/network_library.cc
diff --git a/net/android/network_library.cc b/net/android/network_library.cc
index eb2376e77e90fb2b0edc57ed1195a3dcd6cb1e72..efe5bd5be5dd96228d00ee4b8ff9ee758deae415 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -143,6 +143,13 @@ bool GetIsRoaming() {
base::android::GetApplicationContext());
}
+std::string GetCurrentWifiConnectionSsid() {
+ return base::android::ConvertJavaStringToUTF8(
+ Java_AndroidNetworkLibrary_getCurrentWifiConnectionSsid(
+ base::android::AttachCurrentThread(),
+ base::android::GetApplicationContext()));
+}
+
bool RegisterNetworkLibrary(JNIEnv* env) {
return RegisterNativesImpl(env);
}

Powered by Google App Engine
This is Rietveld 408576698