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

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: Added permission for net_unittests Created 4 years, 10 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/android/network_library.h ('k') | net/android/unittest_support/AndroidManifest.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/network_library.cc
diff --git a/net/android/network_library.cc b/net/android/network_library.cc
index eb2376e77e90fb2b0edc57ed1195a3dcd6cb1e72..6837ddc42f3f617b8ea656f63521daa10cd02835 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -143,6 +143,13 @@ bool GetIsRoaming() {
base::android::GetApplicationContext());
}
+std::string GetWifiSSID() {
+ return base::android::ConvertJavaStringToUTF8(
+ Java_AndroidNetworkLibrary_getWifiSSID(
+ base::android::AttachCurrentThread(),
+ base::android::GetApplicationContext()));
+}
+
bool RegisterNetworkLibrary(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « net/android/network_library.h ('k') | net/android/unittest_support/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698