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

Issue 3041019: Remove --testing-fixed-http-port and --testing-fixed-https-port. (Closed)

Created:
10 years, 5 months ago by cbentzel
Modified:
9 years, 7 months ago
Reviewers:
Mike Belshe, eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Remove --testing-fixed-http-port and --testing-fixed-https-port. --host-rules seems like a reasonable enough substitute for these two command line flags, and removing them will simplifies the fairly complicated URL rewrite logic in HttpNetworkTransaction. BUG=None TEST=built and ran net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53790

Patch Set 1 #

Patch Set 2 : Remove use of --testing-fixed-http-port and --testing-fixed-https-port #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -62 lines) Patch
M chrome/browser/browser_main.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/http/http_network_session.h View 1 chunk +0 lines, -6 lines 0 comments Download
M net/http/http_network_session.cc View 2 chunks +0 lines, -23 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M net/spdy/spdy_network_transaction.cc View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
cbentzel
The only concern with dropping these two flags is that --host-rules does rules matching using ...
10 years, 5 months ago (2010-07-26 13:21:55 UTC) #1
mbelshe
I do use these every now and then... Mike On Mon, Jul 26, 2010 at ...
10 years, 5 months ago (2010-07-26 16:42:40 UTC) #2
cbentzel
Would host-rules be sufficient for you? On Mon, Jul 26, 2010 at 12:42 PM, Mike ...
10 years, 5 months ago (2010-07-26 16:54:50 UTC) #3
mbelshe
On Mon, Jul 26, 2010 at 9:54 AM, Chris Bentzel <cbentzel@chromium.org>wrote: > Would host-rules be ...
10 years, 5 months ago (2010-07-26 17:00:17 UTC) #4
cbentzel
OK. I'll hold off on this then. Darn, was hoping to simplify URL rewrite paths ...
10 years, 5 months ago (2010-07-26 17:01:49 UTC) #5
eroman
lgtm. i'll let you and mike duke it out. On Mon, Jul 26, 2010 at ...
10 years, 5 months ago (2010-07-26 17:02:07 UTC) #6
mbelshe
10 years, 5 months ago (2010-07-26 17:35:13 UTC) #7
LGTM; if I'm the only one that ever uses this, I can hack around it when I
need to.

Mike


On Mon, Jul 26, 2010 at 10:00 AM, Mike Belshe <mbelshe@google.com> wrote:

> On Mon, Jul 26, 2010 at 9:54 AM, Chris Bentzel <cbentzel@chromium.org>wrote:
>
>> Would host-rules be sufficient for you?
>
>
> 98% of the time I use host-resolver-rules...
>
> But there are a few times when I need to control the per-protocol ports,
> which is where these come into play.
>
> Mike
>
>
>
>>
>>
>> On Mon, Jul 26, 2010 at 12:42 PM, Mike Belshe <mbelshe@google.com> wrote:
>>
>>> I do use these every now and then...
>>>
>>> Mike
>>>
>>>
>>> On Mon, Jul 26, 2010 at 6:21 AM, <cbentzel@chromium.org> wrote:
>>>
>>>> Reviewers: Mike Belshe, eroman,
>>>>
>>>> Message:
>>>> The only concern with dropping these two flags is that --host-rules does
>>>> rules
>>>> matching using the host, but never the port.
>>>>
>>>> If you are testing against a single server name, it doesn't seem to
>>>> onerous to
>>>> add the host name for matching to the new port. If multiple (possibly in
>>>> the
>>>> case of the SPDY in memory server?) I'll need to add host matches based
>>>> on
>>>> destination port before making this change.
>>>>
>>>> Description:
>>>> Remove --testing-fixed-http-port and --testing-fixed-https-port.
>>>>
>>>> --host-rules seems like a reasonable enough substitute for these two
>>>> command
>>>> line flags, and removing them will simplifies the fairly complicated URL
>>>> rewrite
>>>> logic in HttpNetworkTransaction.
>>>>
>>>> BUG=None
>>>> TEST=built and ran net_unittests
>>>>
>>>> Please review this at http://codereview.chromium.org/3041019/show
>>>>
>>>> Affected files:
>>>>  M chrome/browser/browser_main.cc
>>>>  M chrome/common/chrome_switches.h
>>>>  M chrome/common/chrome_switches.cc
>>>>  M net/http/http_network_session.h
>>>>  M net/http/http_network_session.cc
>>>>  M net/http/http_network_transaction.cc
>>>>  M net/spdy/spdy_network_transaction.cc
>>>>
>>>>
>>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698