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

Issue 176032: Adding commandline option to override bans on certain port numbers through a ... (Closed)

Created:
11 years, 3 months ago by pierre.lafayette
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google), willchan no longer on Chromium
Visibility:
Public.

Description

Adding commandline option to override bans on certain port numbers through a comma separated list of ports. BUG=18307 TEST=url_request_unittest, use commandline flag allowed_ports=1,600. Navigate to http://www.google.com:1 or http://www.google.com:600. You should not get an ERR_UNSAFE_PORT, it will attempt to load the page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24883

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 7

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 7

Patch Set 12 : '' #

Total comments: 5

Patch Set 13 : '' #

Patch Set 14 : '' #

Total comments: 2

Patch Set 15 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -1 line) Patch
M chrome/browser/browser_init.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -0 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +46 lines, -1 line 1 comment Download
M net/url_request/url_request_unittest.cc View 12 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
pierre.lafayette
11 years, 3 months ago (2009-08-29 07:51:28 UTC) #1
pierre.lafayette
11 years, 3 months ago (2009-08-29 08:32:36 UTC) #2
jar (doing other things)
http://codereview.chromium.org/176032/diff/7001/1006 File chrome/browser/browser_init.cc (right): http://codereview.chromium.org/176032/diff/7001/1006#newcode850 Line 850: URLRequestHttpJob::set_overridden_banned_ports(port_strings); nit/interface design suggestion: IMO, all parsing and ...
11 years, 3 months ago (2009-08-29 14:28:18 UTC) #3
Miranda Callahan
http://codereview.chromium.org/176032/diff/7001/1008 File net/url_request/url_request_http_job.h (right): http://codereview.chromium.org/176032/diff/7001/1008#newcode28 Line 28: // Specifies a list of ports that should ...
11 years, 3 months ago (2009-08-29 18:05:35 UTC) #4
pierre.lafayette
Updated. I've used allowed_ports for now, awaiting feedback on the naming changes. http://codereview.chromium.org/176032
11 years, 3 months ago (2009-08-29 18:24:56 UTC) #5
Miranda Callahan
lgtm.
11 years, 3 months ago (2009-08-29 20:10:53 UTC) #6
jar (doing other things)
http://codereview.chromium.org/176032/diff/7008/7013 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/176032/diff/7008/7013#newcode601 Line 601: // Explicitly allow ports using a comma separated ...
11 years, 3 months ago (2009-08-29 22:24:40 UTC) #7
Miranda Callahan
http://codereview.chromium.org/176032/diff/7008/7011 File net/url_request/url_request_http_job.h (right): http://codereview.chromium.org/176032/diff/7008/7011#newcode32 Line 32: static const std::set<int>& allowed_ports() { return allowed_ports_; } ...
11 years, 3 months ago (2009-08-29 22:59:04 UTC) #8
pierre.lafayette
Updated. Went with explicitly_allowed_ports. http://codereview.chromium.org/176032/diff/7008/7010 File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/176032/diff/7008/7010#newcode75 Line 75: for (size_t i = ...
11 years, 3 months ago (2009-08-30 01:48:47 UTC) #9
jar (doing other things)
Thanks for adding the unittest!!! Some minor stuff below. Thanks, Jim http://codereview.chromium.org/176032/diff/3028/3029 File chrome/browser/browser_init.cc (right): ...
11 years, 3 months ago (2009-08-30 04:12:57 UTC) #10
pierre.lafayette
Updated. http://codereview.chromium.org/176032
11 years, 3 months ago (2009-08-30 08:28:44 UTC) #11
jar (doing other things)
LGTM (minor style nit below) http://codereview.chromium.org/176032/diff/1027/7020 File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/176032/diff/1027/7020#newcode64 Line 64: // static style ...
11 years, 3 months ago (2009-08-30 14:30:58 UTC) #12
pierre.lafayette
You'll need to land this for me. Thanks. http://codereview.chromium.org/176032/diff/1027/7020 File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/176032/diff/1027/7020#newcode64 Line 64: ...
11 years, 3 months ago (2009-08-30 16:29:59 UTC) #13
jar (doing other things)
I'm OOO... and mostly trying to help via email. To do a landing, I need ...
11 years, 3 months ago (2009-08-30 17:35:26 UTC) #14
Miranda Callahan
I can land this later today or tomorrow -- no problem. On 2009/08/30 17:35:26, jar ...
11 years, 3 months ago (2009-08-30 18:42:38 UTC) #15
Miranda Callahan
Landed as http://src.chromium.org/viewvc/chrome?view=rev&revision=24883. I had to make some tweaks to get this past linux and ...
11 years, 3 months ago (2009-08-31 17:07:21 UTC) #16
pierre.lafayette
On 2009/08/31 17:07:21, Miranda Callahan wrote: > Landed as http://src.chromium.org/viewvc/chrome?view=rev&revision=24883. I had > to make ...
11 years, 3 months ago (2009-09-01 05:17:50 UTC) #17
darin (slow to review)
http://codereview.chromium.org/176032/diff/9017/8006 File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/176032/diff/9017/8006#newcode66 Line 66: void URLRequestHttpJob::SetExplicitlyAllowedPorts( it seems like we'd want to ...
11 years, 3 months ago (2009-09-01 06:49:23 UTC) #18
pierre.lafayette
No problem. I'll make a separate patch for the refactoring. On 2009/09/01 06:49:23, darin wrote: ...
11 years, 3 months ago (2009-09-01 12:48:22 UTC) #19
darin (slow to review)
11 years, 3 months ago (2009-09-01 14:03:19 UTC) #20
Thanks!

On Tue, Sep 1, 2009 at 5:48 AM, <pierre.lafayette@gmail.com> wrote:

> No problem. I'll make a separate patch for the refactoring.
>
>
> On 2009/09/01 06:49:23, darin wrote:
>
>> http://codereview.chromium.org/176032/diff/9017/8006
>> File net/url_request/url_request_http_job.cc (right):
>>
>
>  http://codereview.chromium.org/176032/diff/9017/8006#newcode66
>> Line 66: void URLRequestHttpJob::SetExplicitlyAllowedPorts(
>> it seems like we'd want to allow port overrides for FTP as well, and
>>
> possibly
>
>> for other protocols in the future.  perhaps it would be better to move
>>
> this
>
>> override stuff to net_util so that it can be shared by other
>>
> protocols.
>
>
>
> http://codereview.chromium.org/176032
>

Powered by Google App Engine
This is Rietveld 408576698