Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Issue 10334009: [net/dns] Turn DnsConfigService on by default. (Closed)

Created:
8 years, 7 months ago by szym
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

[net/dns] Turn DnsConfigService on by default. [email protected] BUG=125599 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139892

Patch Set 1 : . #

Patch Set 2 : Check for rogue (DNSChanger) servers. #

Patch Set 3 : Adds CreateDnsWatchingSystemHostResolver. #

Patch Set 4 : Rebased after DnsConfigWatcher CL. #

Patch Set 5 : Only check for rogue DNS once per session. #

Patch Set 6 : Replace CreateSystemHostResolver with MockCachingHostResolver in TestURLRequestContext. #

Patch Set 7 : Allow SerialWorker::Cancel after MessageLoop has been destroyed. #

Patch Set 8 : Moved rogue DNS detection to another CL. #

Patch Set 9 : 2x CreateSystemHostResolver -> MockHostResolver. Fix jingle_unittests:SingleLoginAttemptTest. #

Patch Set 10 : Explicitly specify HostResolver::Resolve behavior. #

Patch Set 11 : Rebased to http://codereview.chromium.org/10408067/ #

Total comments: 10

Patch Set 12 : Go back to using OnDNSChanged. Record AsyncDNS.HaveDnsconfig. #

Total comments: 7

Patch Set 13 : Responded to review. #

Total comments: 2

Patch Set 14 : Ignore watch-related signals in OnDNSChanged. Only AddDNSObserver on OS_LINUX. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -58 lines) Patch
M net/base/host_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +19 lines, -14 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 12 chunks +38 lines, -30 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +28 lines, -14 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
szym
This will enable DnsConfigService, and results will be visible in chrome://net-internals/#events although not /#dns. The ...
8 years, 7 months ago (2012-05-02 21:20:41 UTC) #1
szym
On 2012/05/02 21:20:41, szym wrote: > The plan is to add measurements of successful DnsConfig ...
8 years, 7 months ago (2012-05-02 22:07:44 UTC) #2
szym
On 2012/05/02 22:07:44, szym wrote: > On 2012/05/02 21:20:41, szym wrote: > > The plan ...
8 years, 7 months ago (2012-05-02 22:18:11 UTC) #3
cbentzel
On 2012/05/02 22:18:11, szym wrote: > On 2012/05/02 22:07:44, szym wrote: > > On 2012/05/02 ...
8 years, 7 months ago (2012-05-03 01:24:45 UTC) #4
szym
On 2012/05/03 01:24:45, cbentzel wrote: > > HostResolverImpl is > > created in many places ...
8 years, 7 months ago (2012-05-03 05:38:13 UTC) #5
szym
On 2012/05/03 05:38:13, szym wrote: > On 2012/05/03 01:24:45, cbentzel wrote: > > > HostResolverImpl ...
8 years, 7 months ago (2012-05-04 19:35:20 UTC) #6
szym
The issue of MessageLoop TYPE_* should resolve itself automatically after http://codereview.chromium.org/10377092/ lands. Consequently, I'll remove ...
8 years, 7 months ago (2012-05-11 23:03:57 UTC) #7
szym
PTAL. After rebasing, this CL: 1) Enables DnsConfigService by default. 2) Checks for rogue DNS ...
8 years, 7 months ago (2012-05-17 16:14:08 UTC) #8
cbentzel
On Thu, May 17, 2012 at 12:14 PM, <[email protected]> wrote: > PTAL. > > After ...
8 years, 7 months ago (2012-05-17 16:18:43 UTC) #9
szym
On 2012/05/17 16:18:43, cbentzel wrote: > > 2) Checks for rogue DNS (once per session). ...
8 years, 7 months ago (2012-05-17 16:28:25 UTC) #10
szym
There are still issues in jingle_unittest. Hold off review on this one until further notice.
8 years, 7 months ago (2012-05-17 16:29:44 UTC) #11
szym
Since http://crrev.com/138413 HostResolverImpl is no longer used in test context, so this is now ready ...
8 years, 7 months ago (2012-05-23 08:10:26 UTC) #12
mmenke
Sorry I didn't get back to you earlier. I have not yet had a chance ...
8 years, 7 months ago (2012-05-24 04:27:47 UTC) #13
szym
http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (left): http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc#oldcode1933 net/base/host_resolver_impl.cc:1933: void HostResolverImpl::OnDNSChanged(unsigned detail) { On 2012/05/24 04:27:47, Matt Menke ...
8 years, 7 months ago (2012-05-25 22:10:23 UTC) #14
szym
I went back to OnDNSChange and added a UMA to asses how good DnsConfigService is. ...
8 years, 6 months ago (2012-05-29 01:23:04 UTC) #15
mmenke
I'll get to this tonight. On Mon, May 28, 2012 at 9:23 PM, <[email protected]> wrote: ...
8 years, 6 months ago (2012-05-29 16:31:47 UTC) #16
mmenke
Looks pretty good, just some minor comments. http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc#newcode482 net/base/host_resolver_impl.cc:482: scoped_ptr<DnsConfigService>(NULL), On ...
8 years, 6 months ago (2012-05-30 03:51:50 UTC) #17
szym
http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10334009/diff/27034/net/base/host_resolver_impl.cc#newcode482 net/base/host_resolver_impl.cc:482: scoped_ptr<DnsConfigService>(NULL), On 2012/05/30 03:51:50, Matt Menke wrote: > On ...
8 years, 6 months ago (2012-05-31 04:55:54 UTC) #18
mmenke
LGTM
8 years, 6 months ago (2012-05-31 05:03:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10334009/49002
8 years, 6 months ago (2012-05-31 05:07:27 UTC) #20
commit-bot: I haz the power
Try job failure for 10334009-49002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 6 months ago (2012-05-31 05:59:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10334009/49002
8 years, 6 months ago (2012-05-31 06:46:22 UTC) #22
commit-bot: I haz the power
Try job failure for 10334009-49002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 6 months ago (2012-05-31 07:43:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10334009/49002
8 years, 6 months ago (2012-05-31 16:07:11 UTC) #24
commit-bot: I haz the power
Try job failure for 10334009-49002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 6 months ago (2012-05-31 17:03:01 UTC) #25
szym
CQ wouldn't get through mac_rel. The cause is FilePathWatcher on OS_MACOSX. http://codereview.chromium.org/10334009/diff/49002/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): ...
8 years, 6 months ago (2012-05-31 18:44:10 UTC) #26
mmenke
https://chromiumcodereview.appspot.com/10334009/diff/49002/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): https://chromiumcodereview.appspot.com/10334009/diff/49002/net/base/host_resolver_impl.cc#newcode1560 net/base/host_resolver_impl.cc:1560: NetworkChangeNotifier::AddDNSObserver(this); On 2012/05/31 18:44:10, szym wrote: > This change ...
8 years, 6 months ago (2012-05-31 18:56:15 UTC) #27
szym
Right. If the AsyncDNS.HaveDnsConfig histogram looks good, I will remove HostResolverImpl::OnDNSChanged, so DnsConfigService will be ...
8 years, 6 months ago (2012-05-31 19:06:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10334009/53002
8 years, 6 months ago (2012-05-31 19:15:40 UTC) #29
commit-bot: I haz the power
8 years, 6 months ago (2012-05-31 22:31:29 UTC) #30
Change committed as 139892

Powered by Google App Engine
This is Rietveld 408576698