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

Unified Diff: net/android/network_library.h

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.h
diff --git a/net/android/network_library.h b/net/android/network_library.h
index 24610bb50d2b4c3649d49fe15bee3cb730a8155d..f1f187412dac8880609ff6fcdfa68543db442f72 100644
--- a/net/android/network_library.h
+++ b/net/android/network_library.h
@@ -71,6 +71,14 @@ NET_EXPORT std::string GetTelephonySimOperator();
// true, it suggests that use of data may incur extra costs.
NET_EXPORT bool GetIsRoaming();
+// Returns true if the captive portal probe was blocked for the current network.
pauljensen 2016/11/24 00:11:19 Same comments as in previous file
tbansal1 2016/11/24 00:43:09 Done.
+// The method would return false if the captive portal probe was not blocked on
+// the current network, the login process to the captive portal has been
+// successfully completed, or if the captive portal status can't be determined.
+// Requires ACCESS_NETWORK_STATE permission. Only available on Android
+// Marshmallow and later versions. Returns false on earlier versions.
+NET_EXPORT bool GetIsCaptivePortal();
+
// Gets the SSID of the currently associated WiFi access point if there is one.
// Otherwise, returns empty string.
NET_EXPORT_PRIVATE std::string GetWifiSSID();

Powered by Google App Engine
This is Rietveld 408576698