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

Issue 303026: Refactor: Change the interface HostResolver::DisableIPv6() to HostResolver::SetDefaultA... (Closed)

Created:
11 years, 2 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), ben+cc_chromium.org
Visibility:
Public.

Description

Refactor: Change the interface from HostResolver::DisableIPv6() to HostResolver::SetDefaultAddressFamily(), to make it more general. This came up in a codereview comment, but was after I had checked in. Comitted r30063.

Patch Set 1 #

Patch Set 2 : remove a comment #

Total comments: 2

Patch Set 3 : reword a comment #

Patch Set 4 : Update the comment once more #

Patch Set 5 : Add another comment by the switch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -14 lines) Patch
M chrome/browser/net/dns_global.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/base/host_resolver.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
eroman
11 years, 2 months ago (2009-10-22 18:30:48 UTC) #1
wtc
LGTM. http://codereview.chromium.org/303026/diff/2001/2002 File net/base/host_resolver.h (right): http://codereview.chromium.org/303026/diff/2001/2002#newcode152 Line 152: // unspecified. This can be used to ...
11 years, 2 months ago (2009-10-22 22:24:20 UTC) #2
eroman
http://codereview.chromium.org/303026/diff/2001/2002 File net/base/host_resolver.h (right): http://codereview.chromium.org/303026/diff/2001/2002#newcode152 Line 152: // unspecified. This can be used to disable ...
11 years, 2 months ago (2009-10-22 23:23:07 UTC) #3
Lorenzo Colitti
LGTM Looks much nicer now, thanks! I still don't particularly like the command-line flag, but ...
11 years, 2 months ago (2009-10-23 05:02:02 UTC) #4
wtc
I don't like the command-line option either. We should add a comment to say that ...
11 years, 2 months ago (2009-10-23 17:16:17 UTC) #5
eroman
11 years, 2 months ago (2009-10-23 20:56:59 UTC) #6
On 2009/10/23 17:16:17, wtc wrote:
> I don't like the command-line option either.  We should
> add a comment to say that it should only be used for
> diagnosing problems that may be caused by IPv6 host name
> resolution, or just remove it until the need arises.

Done, added this comment above the flag:

// Don't resolve hostnames to IPv6 addresses. This can be used when debugging
// issues relating to IPv6, but shouldn't otherwise be needed. Be sure to
// file bugs if something isn't working properly in the presence of IPv6.

Powered by Google App Engine
This is Rietveld 408576698