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

Issue 10386120: Utility to resolve an hostname using Chromium's code in net/dns (Closed)

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

Description

Utility to resolve a hostname using Chromium's code in net/dns R=szym@chromium.org BUG=128212 TEST=build it and test manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140908

Patch Set 1 #

Total comments: 24

Patch Set 2 : Tried to address all the comments szym provided in the previous code review #

Total comments: 9

Patch Set 3 : MockDnsConfigService removed since we can now pass a DnsClient to the constructor of HostResolverIm… #

Patch Set 4 : In the previous commit I accidentally removed base/dns_util_unittest.cc from net.gyp #

Patch Set 5 : Create a standard DnsClient instead of a MockDnsClient to be passed to HostResolverImpl #

Total comments: 6

Patch Set 6 : Moved dns_config_service_.release() in a single place #

Total comments: 2

Patch Set 7 : Addressing the comments szym wrote in the previous code review #

Total comments: 33

Patch Set 8 : Using LOG instead of std::cout, fix includes and a few stylistic nits. #

Total comments: 1

Patch Set 9 : Removed logging, using an index to iterate the addrlist entries and an ifdef for windows. #

Patch Set 10 : gclient sync'd and rebased because try bot can't merge net.gyp #

Patch Set 11 : Added string_util include #

Total comments: 1

Patch Set 12 : Include files in alphabetical order #

Total comments: 10

Patch Set 13 : Added base dependency, rearranged include files, added a check when parsing a CL parameter #

Total comments: 4

Patch Set 14 : Changed sort order of dependencies in net.gpy. Added a line in include files. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -0 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -0 lines 0 comments Download
A net/tools/gdig/gdig.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +186 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
szym
Thanks for creating this. http://codereview.chromium.org/10386120/diff/1/net/base/host_resolver.h File net/base/host_resolver.h (right): http://codereview.chromium.org/10386120/diff/1/net/base/host_resolver.h#newcode209 net/base/host_resolver.h:209: NET_EXPORT HostResolver* CreateHostResolver( I think ...
8 years, 7 months ago (2012-05-14 18:48:31 UTC) #1
Daniele
I http://codereview.chromium.org/10386120/diff/1/net/base/host_resolver.h File net/base/host_resolver.h (right): http://codereview.chromium.org/10386120/diff/1/net/base/host_resolver.h#newcode209 net/base/host_resolver.h:209: NET_EXPORT HostResolver* CreateHostResolver( On 2012/05/14 18:48:32, szym wrote: ...
8 years, 7 months ago (2012-05-17 23:04:32 UTC) #2
szym
Excellent! To fetch the updates to AddressList: git checkout master gclient sync git checkout <your ...
8 years, 7 months ago (2012-05-18 18:15:04 UTC) #3
szym
The change to HostResolverImpl constructor has landed (and set_dns_client_for_tests is gone). To fetch it: git ...
8 years, 6 months ago (2012-06-01 17:54:49 UTC) #4
szym
On 2012/06/01 17:54:49, szym wrote: > You can still use a MockDnsConfigService, but I think ...
8 years, 6 months ago (2012-06-01 18:10:34 UTC) #5
szym
http://codereview.chromium.org/10386120/diff/19001/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10386120/diff/19001/net/net.gyp#newcode1614 net/net.gyp:1614: 'target_name': 'gdig', you have trailing whitespace here http://codereview.chromium.org/10386120/diff/19001/net/tools/gdig/gdig.cc File ...
8 years, 6 months ago (2012-06-01 22:07:58 UTC) #6
szym
http://codereview.chromium.org/10386120/diff/20001/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc (right): http://codereview.chromium.org/10386120/diff/20001/net/tools/gdig/gdig.cc#newcode84 net/tools/gdig/gdig.cc:84: dns_config_service_.reset(); Maybe add a comment: "Destroy it while MessageLoop ...
8 years, 6 months ago (2012-06-01 22:10:23 UTC) #7
Daniele
Thank you Szymon for the meticulous reviews, I think I addressed all the issues you ...
8 years, 6 months ago (2012-06-01 22:29:27 UTC) #8
szym
LGTM! A few stylistic nits, and maybe switch from std::cout to LOG. http://codereview.chromium.org/10386120/diff/27001/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc ...
8 years, 6 months ago (2012-06-03 04:49:20 UTC) #9
szym
Fix missing includes and a few more nits. http://codereview.chromium.org/10386120/diff/27001/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc (right): http://codereview.chromium.org/10386120/diff/27001/net/tools/gdig/gdig.cc#newcode2 net/tools/gdig/gdig.cc:2: #include ...
8 years, 6 months ago (2012-06-03 20:00:05 UTC) #10
Daniele
I used the LOG only for error and info messages, and switched to printf for ...
8 years, 6 months ago (2012-06-04 20:01:14 UTC) #11
szym
LGTM. Up to you if you want to use cout or printf, but it looks ...
8 years, 6 months ago (2012-06-04 20:44:46 UTC) #12
szym
http://codereview.chromium.org/10386120/diff/31001/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc (right): http://codereview.chromium.org/10386120/diff/31001/net/tools/gdig/gdig.cc#newcode163 net/tools/gdig/gdig.cc:163: domain_name_ = parsed_command_line.GetArgs().at(0); Use operator[] rather than .at() for ...
8 years, 6 months ago (2012-06-04 22:03:56 UTC) #13
szym
I think it's ready to land. Thanks for all the hard work! https://chromiumcodereview.appspot.com/10386120/diff/45002/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc ...
8 years, 6 months ago (2012-06-05 22:21:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcastagna@google.com/10386120/46002
8 years, 6 months ago (2012-06-06 15:50:40 UTC) #15
Ryan Sleevi
Just a few random drive-by nits, mostly super-minor style. http://codereview.chromium.org/10386120/diff/46002/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10386120/diff/46002/net/net.gyp#newcode1616 net/net.gyp:1616: ...
8 years, 6 months ago (2012-06-06 15:54:58 UTC) #16
szym
http://codereview.chromium.org/10386120/diff/46002/net/net.gyp File net/net.gyp (right): http://codereview.chromium.org/10386120/diff/46002/net/net.gyp#newcode1616 net/net.gyp:1616: 'net', On 2012/06/06 15:54:58, Ryan Sleevi wrote: > nit: ...
8 years, 6 months ago (2012-06-06 16:03:46 UTC) #17
Daniele
Thank you Ryan for the additional review. I added the dependency and fixed the includes. ...
8 years, 6 months ago (2012-06-06 17:43:42 UTC) #18
Ryan Sleevi
lgtm http://codereview.chromium.org/10386120/diff/46002/net/tools/gdig/gdig.cc File net/tools/gdig/gdig.cc (right): http://codereview.chromium.org/10386120/diff/46002/net/tools/gdig/gdig.cc#newcode13 net/tools/gdig/gdig.cc:13: #endif On 2012/06/06 17:43:42, Daniele wrote: > On ...
8 years, 6 months ago (2012-06-06 23:20:29 UTC) #19
Daniele
Thank you for the reviews, I'm going to try to commit this. http://codereview.chromium.org/10386120/diff/44004/net/net.gyp File net/net.gyp ...
8 years, 6 months ago (2012-06-06 23:29:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcastagna@google.com/10386120/47004
8 years, 6 months ago (2012-06-06 23:29:21 UTC) #21
commit-bot: I haz the power
8 years, 6 months ago (2012-06-07 00:47:38 UTC) #22
Change committed as 140908

Powered by Google App Engine
This is Rietveld 408576698