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

Issue 2756643002: cros: Do not schedule attempt when behind captive portal with response 200 is detected (Closed)

Created:
3 years, 9 months ago by Qiang(Joe) Xu
Modified:
3 years, 9 months ago
Reviewers:
stevenjb
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Do not schedule attempt when behind captive portal with response 200 is detected Changes: (1) Do not schedule attempt if we are already behind captive portal with response 200, which can be either the result of NetworkPortalDetector or shill's detection. In test, this can reduce the call times of CaptivePortalDetector::DetectCaptivePortal from 6+ to 2~3 within 10s. (2) modify tests to adapt this change BUG=702273 TEST=If we log in CaptivePortalDetector::DetectCaptivePortal, we can see the attempts reduced to 2~3 for connecting to captive portal wifi. Review-Url: https://codereview.chromium.org/2756643002 Cr-Commit-Position: refs/heads/master@{#457829} Committed: https://chromium.googlesource.com/chromium/src/+/db14329b13d1109723acf5528a0253d6ee8c1651

Patch Set 1 #

Total comments: 1

Patch Set 2 : nits #

Patch Set 3 : add response_code 200 check and modify tests #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M chrome/browser/chromeos/net/network_portal_detector_impl.cc View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc View 1 2 3 7 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
Qiang(Joe) Xu
Hi Steven, PTAL, thanks!
3 years, 9 months ago (2017-03-16 17:07:20 UTC) #7
stevenjb
Seems reasonable, lgtm, thanks! https://codereview.chromium.org/2756643002/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/2756643002/diff/1/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode554 chrome/browser/chromeos/net/network_portal_detector_impl.cc:554: // schedule new attempt or ...
3 years, 9 months ago (2017-03-17 00:26:46 UTC) #8
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/2756643002/20001
3 years, 9 months ago (2017-03-17 02:17:55 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/342174)
3 years, 9 months ago (2017-03-17 02:58:04 UTC) #13
Qiang(Joe) Xu
Hi Steven, please take another look, thanks! The flaky tests hide the NetworkPortalDetectorImplTest failures. I ...
3 years, 9 months ago (2017-03-17 04:58:04 UTC) #22
stevenjb
https://codereview.chromium.org/2756643002/diff/60001/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/2756643002/diff/60001/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode560 chrome/browser/chromeos/net/network_portal_detector_impl.cc:560: } This logic got a bit complicated, let's break ...
3 years, 9 months ago (2017-03-17 16:53:01 UTC) #25
Qiang(Joe) Xu
Updated, PTAL, thanks https://codereview.chromium.org/2756643002/diff/60001/chrome/browser/chromeos/net/network_portal_detector_impl.cc File chrome/browser/chromeos/net/network_portal_detector_impl.cc (right): https://codereview.chromium.org/2756643002/diff/60001/chrome/browser/chromeos/net/network_portal_detector_impl.cc#newcode560 chrome/browser/chromeos/net/network_portal_detector_impl.cc:560: } On 2017/03/17 16:53:01, stevenjb wrote: ...
3 years, 9 months ago (2017-03-17 17:23:55 UTC) #26
stevenjb
lgtm
3 years, 9 months ago (2017-03-17 17:52:43 UTC) #27
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/2756643002/100001
3 years, 9 months ago (2017-03-17 17:56:02 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 18:47:10 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/db14329b13d1109723acf5528a02...

Powered by Google App Engine
This is Rietveld 408576698