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

Issue 415153002: ParseHosts: Allow commas as separators on Mac OS X (Closed)

Created:
6 years, 5 months ago by Deprecated (see juliatuttle)
Modified:
6 years, 5 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

ParseHosts: Allow commas as separators on Mac OS X Apparently, OS X allows commas as separators between hostnames in the hosts file. Treat commas the same as whitespace to support this. (Hostnames and IP addresses will never contain commas, so this shouldn't break anything.) BUG=396309 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285718

Patch Set 1 #

Patch Set 2 : Make comma-handling OS-specific #

Total comments: 17

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -29 lines) Patch
M net/dns/dns_hosts.h View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M net/dns/dns_hosts.cc View 1 2 6 chunks +57 lines, -12 lines 0 comments Download
M net/dns/dns_hosts_unittest.cc View 1 2 3 chunks +74 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Deprecated (see juliatuttle)
PTAL, mmenke.
6 years, 5 months ago (2014-07-24 16:49:46 UTC) #1
mmenke
Should we support this on all platforms, or just Macs? Problem with supporting it everywhere ...
6 years, 5 months ago (2014-07-24 16:54:43 UTC) #2
Deprecated (see juliatuttle)
On 2014/07/24 16:54:43, mmenke wrote: > Should we support this on all platforms, or just ...
6 years, 5 months ago (2014-07-24 16:56:29 UTC) #3
mmenke
On 2014/07/24 16:56:29, ttuttle wrote: > On 2014/07/24 16:54:43, mmenke wrote: > > Should we ...
6 years, 5 months ago (2014-07-24 16:58:41 UTC) #4
Deprecated (see juliatuttle)
Chris says he wants it to be OS-specific. Here's an OS-specific version.
6 years, 5 months ago (2014-07-24 17:40:47 UTC) #5
mmenke
Just minor comments. https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts.cc File net/dns/dns_hosts.cc (right): https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts.cc#newcode27 net/dns/dns_hosts.cc:27: token_(), While you're here, don't need ...
6 years, 5 months ago (2014-07-24 21:32:31 UTC) #6
Deprecated (see juliatuttle)
PTAL. https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts.cc File net/dns/dns_hosts.cc (right): https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts.cc#newcode27 net/dns/dns_hosts.cc:27: token_(), On 2014/07/24 21:32:30, mmenke wrote: > While ...
6 years, 5 months ago (2014-07-25 19:34:44 UTC) #7
mmenke
https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts_unittest.cc File net/dns/dns_hosts_unittest.cc (right): https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts_unittest.cc#newcode67 net/dns/dns_hosts_unittest.cc:67: TEST(DnsHostsTest, ParseHosts_CommaIsToken) { On 2014/07/25 19:34:44, ttuttle wrote: > ...
6 years, 5 months ago (2014-07-25 19:38:46 UTC) #8
Deprecated (see juliatuttle)
On 2014/07/25 19:38:46, mmenke wrote: > https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts_unittest.cc > File net/dns/dns_hosts_unittest.cc (right): > > https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts_unittest.cc#newcode67 > ...
6 years, 5 months ago (2014-07-25 19:47:46 UTC) #9
mmenke
On 2014/07/25 19:47:46, ttuttle wrote: > On 2014/07/25 19:38:46, mmenke wrote: > > > https://codereview.chromium.org/415153002/diff/20001/net/dns/dns_hosts_unittest.cc ...
6 years, 5 months ago (2014-07-25 19:50:05 UTC) #10
Deprecated (see juliatuttle)
It's already in the new patch set. On Fri, Jul 25, 2014 at 3:50 PM, ...
6 years, 5 months ago (2014-07-25 19:52:19 UTC) #11
mmenke
On 2014/07/25 19:52:19, ttuttle wrote: > It's already in the new patch set. Sorry, misread ...
6 years, 5 months ago (2014-07-25 19:53:29 UTC) #12
mmenke
LGTM
6 years, 5 months ago (2014-07-25 19:54:37 UTC) #13
Deprecated (see juliatuttle)
The CQ bit was checked by ttuttle@chromium.org
6 years, 5 months ago (2014-07-25 19:58:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/415153002/40001
6 years, 5 months ago (2014-07-25 20:00:31 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 23:03:22 UTC) #16
Message was sent while issue was closed.
Change committed as 285718

Powered by Google App Engine
This is Rietveld 408576698