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

Issue 113944: Use the new CanonicalizeHostVerbose() function. (Closed)

Created:
11 years, 7 months ago by pmarks
Modified:
9 years, 7 months ago
Reviewers:
brettw, eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

- Pull in googleurl r107, which includes the new CanonicalizeHostVerbose() function: http://code.google.com/p/google-url/source/detail?r=107 - Atomically update Chromium to make use of this new function. This allows us to extract better information about IP addresses using fewer, and cleaner, calls to googleurl. - Also, change a call to CanonicalizeIPAddress() to stay compatible with r107. The upshot of all this is, Chrome will no longer try to connect to IPv4 addresses with overflow "http://192.168.0.257", or hostnames surrounded by square brackets "http://[google.com]" BUG=none TEST={unit_tests,googleurl_unittests,net_unittests} pass for me on Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19076

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : Minor tweak; chrome's CanonicalizeHost doesn't distinguish invalid from empty. #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : This way looks better #

Patch Set 7 : Include an invalid IPv4 literal #

Total comments: 5

Patch Set 8 : Address brettw's comments #

Patch Set 9 : is_valid -> is_nonempty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -66 lines) Patch
M DEPS View 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -17 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/cookie_monster.cc View 8 1 chunk +2 lines, -1 line 0 comments Download
M net/base/net_util.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -4 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -27 lines 0 comments Download
M net/base/registry_controlled_domain.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -12 lines 0 comments Download
M net/proxy/proxy_config.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brettw
Your other changes make more sense to me now. This looks like a nice improvement. ...
11 years, 6 months ago (2009-05-28 18:27:47 UTC) #1
pmarks
http://codereview.chromium.org/113944/diff/1/3 File net/base/net_util.cc (right): http://codereview.chromium.org/113944/diff/1/3#newcode791 Line 791: // If no host_info was provided, allocate a ...
11 years, 6 months ago (2009-05-28 19:23:09 UTC) #2
pmarks
This change is ready for review now.
11 years, 6 months ago (2009-06-22 23:11:28 UTC) #3
brettw
http://codereview.chromium.org/113944/diff/5025/4029 File net/base/net_util.cc (right): http://codereview.chromium.org/113944/diff/5025/4029#newcode835 Line 835: url_canon::CanonHostInfo temp_host_info; I like to avoid option arguments ...
11 years, 6 months ago (2009-06-22 23:53:57 UTC) #4
pmarks
http://codereview.chromium.org/113944/diff/5025/4029 File net/base/net_util.cc (right): http://codereview.chromium.org/113944/diff/5025/4029#newcode835 Line 835: url_canon::CanonHostInfo temp_host_info; On 2009/06/22 23:53:57, brettw wrote: > ...
11 years, 6 months ago (2009-06-23 01:31:35 UTC) #5
brettw
http://codereview.chromium.org/113944/diff/5025/4029 File net/base/net_util.cc (right): http://codereview.chromium.org/113944/diff/5025/4029#newcode847 Line 847: if (host_info->out_host.is_valid() && On 2009/06/23 01:31:35, pmarks wrote: ...
11 years, 6 months ago (2009-06-23 18:21:56 UTC) #6
pmarks
On 2009/06/23 18:21:56, brettw wrote: > > But then wouldn't is_nonempty() also catch them since ...
11 years, 6 months ago (2009-06-23 18:48:52 UTC) #7
brettw
LGTM
11 years, 6 months ago (2009-06-23 20:38:43 UTC) #8
pmarks
11 years, 6 months ago (2009-06-23 20:50:38 UTC) #9
On 2009/06/23 20:38:43, brettw wrote:
> LGTM

Can you submit this for me?  I don't have write access to Chromium.

I assume eroman doesn't have much to say, as he didn't comment on the previous
change either.

Powered by Google App Engine
This is Rietveld 408576698