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

Issue 2608803002: ONC: Fix handling of invalid proxy scheme. (Closed)

Created:
3 years, 11 months ago by stevenjb
Modified:
3 years, 11 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ONC: Fix handling of invalid proxy scheme. It is common for a proxy configuration URL to be added as 'foo.com' instead of 'http://foo.com'. Rather than relying on all UI to validate the input, we should do so in the ONC conversion. BUG=677357 Review-Url: https://codereview.chromium.org/2608803002 Cr-Commit-Position: refs/heads/master@{#442378} Committed: https://chromium.googlesource.com/chromium/src/+/a8a349eb13605f30e1aa6c096f4c4ea28ba11bc9

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use FixupURL #

Total comments: 6

Patch Set 3 : Feedback + add unit test #

Patch Set 4 : Rebase #

Patch Set 5 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -10 lines) Patch
M chromeos/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/onc/onc_utils.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chromeos/network/onc/onc_utils_unittest.cc View 1 2 3 4 1 chunk +18 lines, -7 lines 0 comments Download
A chromeos/test/data/network/proxy_config_from_onc.json View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
stevenjb
3 years, 11 months ago (2016-12-29 21:17:05 UTC) #2
emaxx
https://codereview.chromium.org/2608803002/diff/1/chromeos/network/onc/onc_utils.cc File chromeos/network/onc/onc_utils.cc (right): https://codereview.chromium.org/2608803002/diff/1/chromeos/network/onc/onc_utils.cc#newcode936 chromeos/network/onc/onc_utils.cc:936: url = GURL(std::string(url::kHttpScheme) + url::kStandardSchemeSeparator + This logic looks ...
3 years, 11 months ago (2016-12-29 22:05:36 UTC) #3
stevenjb
+pkasting@ for owner of components/url_formatter/ (adding DEP) https://codereview.chromium.org/2608803002/diff/1/chromeos/network/onc/onc_utils.cc File chromeos/network/onc/onc_utils.cc (right): https://codereview.chromium.org/2608803002/diff/1/chromeos/network/onc/onc_utils.cc#newcode936 chromeos/network/onc/onc_utils.cc:936: url = ...
3 years, 11 months ago (2016-12-29 22:44:18 UTC) #5
emaxx
lgtm
3 years, 11 months ago (2016-12-29 22:56:02 UTC) #8
Peter Kasting
https://codereview.chromium.org/2608803002/diff/20001/chromeos/network/onc/onc_utils.cc File chromeos/network/onc/onc_utils.cc (right): https://codereview.chromium.org/2608803002/diff/20001/chromeos/network/onc/onc_utils.cc#newcode935 chromeos/network/onc/onc_utils.cc:935: if (!url.is_valid()) { Why check for an invalid GURL ...
3 years, 11 months ago (2017-01-06 01:59:33 UTC) #11
stevenjb
Also added a couple of test cases. PTAL. https://codereview.chromium.org/2608803002/diff/20001/chromeos/network/onc/onc_utils.cc File chromeos/network/onc/onc_utils.cc (right): https://codereview.chromium.org/2608803002/diff/20001/chromeos/network/onc/onc_utils.cc#newcode935 chromeos/network/onc/onc_utils.cc:935: if ...
3 years, 11 months ago (2017-01-06 17:36:14 UTC) #12
Peter Kasting
LGTM
3 years, 11 months ago (2017-01-06 20:58:21 UTC) #13
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/2608803002/40001
3 years, 11 months ago (2017-01-06 21:13:56 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/132912)
3 years, 11 months ago (2017-01-06 21:42:49 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/2608803002/60001
3 years, 11 months ago (2017-01-09 20:55:17 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/a8a349eb13605f30e1aa6c096f4c4ea28ba11bc9
3 years, 11 months ago (2017-01-09 22:39:29 UTC) #24
Timothy Loh
3 years, 11 months ago (2017-01-10 02:50:29 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2619803003/ by timloh@chromium.org.

The reason for reverting is: The modified test is failing on Linux ChromiumOS
Tests (dbg)(1)

https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%...

An example failure:
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698