Use NetworkListManager API for captive portal interstitial on Windows
This CL introduces chrome::GetIsCaptivePortal() which returns true if the OS reports a captive portal. It uses NetworkListManager API on Windows and net::android::GetIsCaptivePortal() on Android. The result is used to determine whether to show a captive portal interstitial. NetworkListManager API returns the WebHijack status for each network adapter separately. GetIsCaptivePortal() returns true if all connected adapters have the WebHijack bit set. As a side note, captive_portal_helper_android.cc contains both the JNI code and chrome::GetIsCaptivePortal() implementation for Android. This is why this CL contains both captive_portal_helper.h and captive_portal_helper_android.h files. Bug: 380762 Change-Id: I9e1d9b709dd3e98b2d615ce2167cf39991f6564b Reviewed-on: https://chromium-review.googlesource.com/665439 Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Reviewed-by:Eric Lawrence <elawrence@chromium.org> Cr-Commit-Position: refs/heads/master@{#506605}
Showing
Please register or sign in to comment