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

Unified Diff: net/android/network_library.cc

Issue 2486393004: Expose API to detect when captive portal probe was blocked on Android (Closed)
Patch Set: Move back to network library from NCN Created 4 years, 1 month 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 939319cd0b2dcf624bdde5674551a12ea65406be..6612381853f4d7082342393cec62bc97e6058a08 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -127,6 +127,12 @@ bool GetIsRoaming() {
base::android::GetApplicationContext());
}
+bool GetIsCaptivePortal() {
+ return Java_AndroidNetworkLibrary_getIsCaptivePortal(
+ base::android::AttachCurrentThread(),
+ base::android::GetApplicationContext());
+}
+
std::string GetWifiSSID() {
return base::android::ConvertJavaStringToUTF8(
Java_AndroidNetworkLibrary_getWifiSSID(

Powered by Google App Engine
This is Rietveld 408576698