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

Issue 2823323002: cros: close dialog when shill detects captive portal network switched to online (Closed)

Created:
3 years, 8 months ago by Qiang(Joe) Xu
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: close dialog when shill detects captive portal network switched to online Changes: (1) On crrev.com/2756643002, we stop the chrome portal detector attempts when chromebook is successfully behind the captive portal. Thus, the following passive attempts are only triggered by network state change or proxy change, like auth supplied. Currently, the portal dialog auto-close happens if chrome portal detection detects an online result. This used to be robust since we keep doing active chrome detection when we are behind the portal. But now if shill detects a online state, it triggers chrome portal detection but this detection times out (indicating that wifi is bad so that fetching gives no response). To make it robust, we can close the dialog when shill detects captive portal network switched to online state. (2) SetIgnoreNoNetworkForTesting() is not needed any more since in tests, SetConnected happens before dialog is shown. The dialog wont be auto-closed for the tests. BUG=705813 TEST=test that portal dialog can be closed when wifi signal is not that good. Review-Url: https://codereview.chromium.org/2823323002 Cr-Commit-Position: refs/heads/master@{#465773} Committed: https://chromium.googlesource.com/chromium/src/+/4179f08f0a422e3f78c822565cc067fee99987e9

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -24 lines) Patch
M chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller.cc View 3 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
Qiang(Joe) Xu
PTAL, thanks When auth info is supplied, shill shall detect the state change from "portal" ...
3 years, 8 months ago (2017-04-18 20:32:27 UTC) #16
stevenjb
lgtm
3 years, 8 months ago (2017-04-19 21:18:49 UTC) #17
Alexander Alekseev
lgtm
3 years, 8 months ago (2017-04-19 21:31:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2823323002/1
3 years, 8 months ago (2017-04-19 21:34:14 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 22:11:35 UTC) #23
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4179f08f0a422e3f78c822565cc0...

Powered by Google App Engine
This is Rietveld 408576698