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

Issue 9721002: [net/dns] Removes locking from DnsConfigServiceWin and adds local computer name. (Closed)

Created:
8 years, 9 months ago by szym
Modified:
8 years, 9 months ago
Reviewers:
cbentzel, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

[net/dns] Removes locking from DnsConfigServiceWin and adds local computer name. Also adds hostname normalization to lower case when resolving from HOSTS. BUG=112907, 118412, 118995 TEST=./net_unittests --gtest_filter=DnsConfigService* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128498

Patch Set 1 #

Total comments: 4

Patch Set 2 : Extract local IP from GetAdapterAddresses. #

Total comments: 11

Patch Set 3 : Responded to review. Added normalization and comments. #

Total comments: 8

Patch Set 4 : Move lowercasing to ServeFromHosts, add test. Reorganize OnHostsRead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -128 lines) Patch
M net/base/host_resolver_impl.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/dns/dns_config_service.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M net/dns/dns_config_service.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M net/dns/dns_config_service_win.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M net/dns/dns_config_service_win.cc View 1 2 3 12 chunks +278 lines, -108 lines 0 comments Download
M net/dns/dns_hosts.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M net/dns/dns_hosts.cc View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M net/dns/dns_hosts_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/dns/file_path_watcher_wrapper.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M net/dns/serial_worker.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M net/dns/serial_worker.cc View 1 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
szym
8 years, 9 months ago (2012-03-16 22:17:44 UTC) #1
mmenke
http://codereview.chromium.org/9721002/diff/1/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/9721002/diff/1/net/dns/dns_config_service_win.cc#newcode129 net/dns/dns_config_service_win.cc:129: watcher_.StartWatching(key_.watch_event(), this); nit: Think this should be indented one ...
8 years, 9 months ago (2012-03-19 15:18:01 UTC) #2
szym
Thanks for the review, although I will need to rewrite much of this CL. First, ...
8 years, 9 months ago (2012-03-20 16:06:22 UTC) #3
mmenke
On 2012/03/20 16:06:22, szym wrote: > Thanks for the review, although I will need to ...
8 years, 9 months ago (2012-03-20 16:24:07 UTC) #4
szym
Indeed, a comment from eroman on http://crrev.com/62050 indicates that it could take a considerable time ...
8 years, 9 months ago (2012-03-20 17:40:10 UTC) #5
mmenke
SGTM. On Tue, Mar 20, 2012 at 1:39 PM, Szymon Jakubczak <szym@chromium.org> wrote: > Indeed, ...
8 years, 9 months ago (2012-03-20 17:53:20 UTC) #6
szym
This should work now with the exception of lowercase normalization.
8 years, 9 months ago (2012-03-21 19:53:26 UTC) #7
mmenke
On 2012/03/21 19:53:26, szym wrote: > This should work now with the exception of lowercase ...
8 years, 9 months ago (2012-03-22 15:36:24 UTC) #8
szym
On 2012/03/22 15:36:24, Matt Menke wrote: > On 2012/03/21 19:53:26, szym wrote: > > This ...
8 years, 9 months ago (2012-03-22 15:47:28 UTC) #9
mmenke1
On 2012/03/22 15:47:28, szym wrote: > On 2012/03/22 15:36:24, Matt Menke wrote: > > On ...
8 years, 9 months ago (2012-03-22 15:48:06 UTC) #10
mmenke
On 2012/03/22 15:48:06, mmenke wrote: > On 2012/03/22 15:47:28, szym wrote: > > On 2012/03/22 ...
8 years, 9 months ago (2012-03-22 15:48:47 UTC) #11
mmenke
http://codereview.chromium.org/9721002/diff/15003/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/9721002/diff/15003/net/dns/dns_config_service_win.cc#newcode502 net/dns/dns_config_service_win.cc:502: // GetComputerNameEx and watches registry for changes to local ...
8 years, 9 months ago (2012-03-22 16:35:04 UTC) #12
szym
Added lower-case normalization and addressed some of the comments cbentzel@ left on dns_config_service.*. http://codereview.chromium.org/9721002/diff/15003/net/dns/dns_config_service_win.cc File ...
8 years, 9 months ago (2012-03-22 18:42:44 UTC) #13
mmenke
LGTM http://codereview.chromium.org/9721002/diff/15003/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/9721002/diff/15003/net/dns/dns_config_service_win.cc#newcode585 net/dns/dns_config_service_win.cc:585: dns_hosts_[DnsHostsKey(localname, ADDRESS_FAMILY_IPV6)]; On 2012/03/22 18:42:45, szym wrote: > ...
8 years, 9 months ago (2012-03-22 19:36:08 UTC) #14
cbentzel
http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc#newcode1809 net/base/host_resolver_impl.cc:1809: return Key(StringToLowerASCII(info.hostname()), I'm not sure you want to do ...
8 years, 9 months ago (2012-03-22 19:45:15 UTC) #15
mmenke
http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc#newcode1809 net/base/host_resolver_impl.cc:1809: return Key(StringToLowerASCII(info.hostname()), On 2012/03/22 19:45:15, cbentzel wrote: > I'm ...
8 years, 9 months ago (2012-03-22 19:55:09 UTC) #16
cbentzel
On Thu, Mar 22, 2012 at 3:55 PM, <mmenke@chromium.org> wrote: > > http://codereview.chromium.**org/9721002/diff/22001/net/** > base/host_resolver_impl.cc<http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc> ...
8 years, 9 months ago (2012-03-22 19:56:37 UTC) #17
mmenke
http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc#newcode1809 net/base/host_resolver_impl.cc:1809: return Key(StringToLowerASCII(info.hostname()), On 2012/03/22 19:55:09, Matt Menke wrote: > ...
8 years, 9 months ago (2012-03-22 19:58:35 UTC) #18
szym
On 2012/03/22 19:45:15, cbentzel wrote: > http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc > File net/base/host_resolver_impl.cc (right): > > http://codereview.chromium.org/9721002/diff/22001/net/base/host_resolver_impl.cc#newcode1809 > ...
8 years, 9 months ago (2012-03-22 20:04:03 UTC) #19
szym
> 1) Convert to lowercase in ServeFromHosts. I confirmed that Windows and Linux > are ...
8 years, 9 months ago (2012-03-22 22:28:44 UTC) #20
cbentzel
Sounds good. On Thu, Mar 22, 2012 at 6:28 PM, <szym@chromium.org> wrote: > 1) Convert ...
8 years, 9 months ago (2012-03-23 01:06:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9721002/18007
8 years, 9 months ago (2012-03-23 14:16:22 UTC) #22
commit-bot: I haz the power
8 years, 9 months ago (2012-03-23 16:17:08 UTC) #23
Change committed as 128498

Powered by Google App Engine
This is Rietveld 408576698