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

Unified Diff: net/android/network_library.cc

Issue 10905207: Implement net::GetNetworkList() for Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Refine the patch Created 8 years, 3 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/base/net_util_posix.cc » ('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 d518abafa36fa7dd628eeabdf88836ece88d5f3b..64f11aa5349402745f29711e75b2cbdee1bf2aa0 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -69,6 +69,13 @@ bool HaveOnlyLoopbackAddresses() {
return Java_AndroidNetworkLibrary_haveOnlyLoopbackAddresses(env);
}
+std::string GetNetworkList() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jstring> ret =
+ Java_AndroidNetworkLibrary_getNetworkList(env);
+ return ConvertJavaStringToUTF8(ret);
+}
+
bool GetMimeTypeFromExtension(const std::string& extension,
std::string* result) {
JNIEnv* env = AttachCurrentThread();
« no previous file with comments | « net/android/network_library.h ('k') | net/base/net_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698