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

Unified Diff: net/base/network_change_notifier.cc

Issue 2486393004: Expose API to detect when captive portal probe was blocked on Android (Closed)
Patch Set: pauljensen comments 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/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index 0cfaaa38d259db9be27343bf487aaf3b88d1a6a0..b98827559c8cdcf7e8642e144d5da7f9dda2147e 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -673,6 +673,13 @@ NetworkChangeNotifier::GetDefaultNetwork() {
}
// static
+bool NetworkChangeNotifier::GetNetworkCaptivePortal() {
+ return g_network_change_notifier
+ ? g_network_change_notifier->GetCurrentNetworkCaptivePortal()
+ : false;
+}
+
+// static
void NetworkChangeNotifier::GetDnsConfig(DnsConfig* config) {
if (!g_network_change_notifier) {
*config = DnsConfig();
@@ -1018,6 +1025,10 @@ NetworkChangeNotifier::GetCurrentDefaultNetwork() const {
return kInvalidNetworkHandle;
}
+bool NetworkChangeNotifier::GetCurrentNetworkCaptivePortal() const {
+ return false;
+}
+
// static
void NetworkChangeNotifier::NotifyObserversOfIPAddressChange() {
if (g_network_change_notifier &&

Powered by Google App Engine
This is Rietveld 408576698