Index: chrome/browser/captive_portal/captive_portal_service.h |
diff --git a/chrome/browser/captive_portal/captive_portal_service.h b/chrome/browser/captive_portal/captive_portal_service.h |
index 2e24e4395bd9697144993c191bb3459a63765cb4..c48ca5d37c1bf40459f6e60051f1a9d88621dfc8 100644 |
--- a/chrome/browser/captive_portal/captive_portal_service.h |
+++ b/chrome/browser/captive_portal/captive_portal_service.h |
@@ -42,6 +42,9 @@ class CaptivePortalService : public KeyedService, public base::NonThreadSafe { |
captive_portal::CaptivePortalResult previous_result; |
// The result of the most recent captive portal check. |
captive_portal::CaptivePortalResult result; |
+ // Landing url of the captive portal check ping. If behind a captive portal, |
+ // this points to the login page. |
+ GURL landing_url; |
}; |
explicit CaptivePortalService(Profile* profile); |
@@ -120,7 +123,8 @@ class CaptivePortalService : public KeyedService, public base::NonThreadSafe { |
// Called when a captive portal check completes. Passes the result to all |
// observers. |
- void OnResult(captive_portal::CaptivePortalResult result); |
+ void OnResult(captive_portal::CaptivePortalResult result, |
+ const GURL& landing_url); |
// Updates BackoffEntry::Policy and creates a new BackoffEntry, which |
// resets the count used for throttling. |