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

Issue 10873018: [net] Move DnsConfigService to NetworkChangeNotifier. (Closed)

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

Description

[net] Move DnsConfigService to NetworkChangeNotifier. This merges DnsConfigWatcher back into DnsConfigService and installs DnsConfigService at NetworkChangeNotifier. It removes |detail| from OnDNSChanged callback, and exposes NetworkChangeNotifier::GetDnsConfig. BUG=142142 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154485

Patch Set 1 : . #

Patch Set 2 : . #

Patch Set 3 : fixes for mac #

Patch Set 4 : fixes for android and win #

Patch Set 5 : more fixes for mac #

Total comments: 6

Patch Set 6 : sync #

Patch Set 7 : fix null-dereference #

Total comments: 12

Patch Set 8 : move IPAddressObserver from DnsConfigServiceWin to Watcher #

Patch Set 9 : remove unneeded this-> #

Patch Set 10 : fix comments #

Total comments: 1

Patch Set 11 : Send DnsConfig() via OnTimeout after watch fails #

Total comments: 5

Patch Set 12 : move watch_failed_ logic to OnConfigComplete; add more expectations #

Total comments: 2

Patch Set 13 : add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -692 lines) Patch
M jingle/notifier/communicator/login.h View 1 chunk +1 line, -1 line 0 comments Download
M jingle/notifier/communicator/login.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/dns_reloader.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 chunks +3 lines, -7 lines 0 comments Download
M net/base/host_resolver_impl.cc View 10 chunks +6 lines, -14 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 8 chunks +7 lines, -12 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 9 chunks +20 lines, -36 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 9 chunks +52 lines, -33 lines 0 comments Download
M net/base/network_change_notifier_linux.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/base/network_change_notifier_linux.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M net/base/network_change_notifier_mac.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/network_change_notifier_mac.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -15 lines 0 comments Download
M net/base/network_change_notifier_win.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/network_change_notifier_win.cc View 2 chunks +12 lines, -11 lines 0 comments Download
M net/dns/dns_config_service.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +21 lines, -17 lines 0 comments Download
M net/dns/dns_config_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -13 lines 0 comments Download
M net/dns/dns_config_service_posix.h View 2 chunks +13 lines, -6 lines 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +120 lines, -38 lines 0 comments Download
M net/dns/dns_config_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +71 lines, -21 lines 0 comments Download
M net/dns/dns_config_service_win.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -9 lines 0 comments Download
M net/dns/dns_config_service_win.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +139 lines, -27 lines 0 comments Download
D net/dns/dns_config_watcher.h View 1 chunk +0 lines, -44 lines 0 comments Download
D net/dns/dns_config_watcher_posix.cc View 1 chunk +0 lines, -143 lines 0 comments Download
D net/dns/dns_config_watcher_win.cc View 1 chunk +0 lines, -165 lines 0 comments Download
M net/dns/dns_test_util.h View 1 chunk +0 lines, -13 lines 0 comments Download
M net/dns/dns_test_util.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M net/tools/gdig/gdig.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M net/tools/net_watcher/net_watcher.cc View 3 chunks +2 lines, -31 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
szym
mmenke: please review pauljensen: FYI changes to network_change_notifier.h
8 years, 3 months ago (2012-08-27 19:34:08 UTC) #1
pauljensen
NetworkChangeNotifier changes look fine to me except the little thing I commented on. I had ...
8 years, 3 months ago (2012-08-27 21:44:10 UTC) #2
szym
Thanks for catching that null-dereference bug! http://codereview.chromium.org/10873018/diff/10004/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): http://codereview.chromium.org/10873018/diff/10004/net/base/network_change_notifier.cc#newcode220 net/base/network_change_notifier.cc:220: g_network_change_notifier->network_state_->GetDnsConfig(config); On 2012/08/27 ...
8 years, 3 months ago (2012-08-27 21:49:20 UTC) #3
mmenke
http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc#newcode2109 net/base/host_resolver_impl.cc:2109: NetworkChangeNotifier::GetDnsConfig(&dns_config); Hmm... I don't see a clean way to ...
8 years, 3 months ago (2012-08-28 15:18:40 UTC) #4
szym
http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc#newcode2109 net/base/host_resolver_impl.cc:2109: NetworkChangeNotifier::GetDnsConfig(&dns_config); On 2012/08/28 15:18:40, Matt Menke wrote: > Hmm... ...
8 years, 3 months ago (2012-08-28 23:14:38 UTC) #5
mmenke
http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc#newcode668 net/dns/dns_config_service_win.cc:668: OnHostsChanged(true); On 2012/08/28 23:14:38, szym wrote: > On 2012/08/28 ...
8 years, 3 months ago (2012-08-29 16:31:20 UTC) #6
mmenke
http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/base/host_resolver_impl.cc#newcode2109 net/base/host_resolver_impl.cc:2109: NetworkChangeNotifier::GetDnsConfig(&dns_config); On 2012/08/28 23:14:38, szym wrote: > On 2012/08/28 ...
8 years, 3 months ago (2012-08-29 16:35:40 UTC) #7
szym
http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc#newcode668 net/dns/dns_config_service_win.cc:668: OnHostsChanged(true); On 2012/08/29 16:31:20, Matt Menke wrote: > But ...
8 years, 3 months ago (2012-08-29 17:08:52 UTC) #8
mmenke
http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10873018/diff/8007/net/dns/dns_config_service_win.cc#newcode668 net/dns/dns_config_service_win.cc:668: OnHostsChanged(true); On 2012/08/29 17:08:52, szym wrote: > On 2012/08/29 ...
8 years, 3 months ago (2012-08-29 17:55:45 UTC) #9
mmenke
LGTM. http://codereview.chromium.org/10873018/diff/20002/net/base/network_change_notifier_mac.cc File net/base/network_change_notifier_mac.cc (right): http://codereview.chromium.org/10873018/diff/20002/net/base/network_change_notifier_mac.cc#newcode41 net/base/network_change_notifier_mac.cc:41: // to open registry keys and to handle ...
8 years, 3 months ago (2012-08-29 23:43:14 UTC) #10
mmenke
(I hadn't noticed you fixed the IPAddressObserver issue)
8 years, 3 months ago (2012-08-29 23:44:41 UTC) #11
szym
PTAL at patch 11. Now once any watcher fails, DnsConfigService will continue sending notifications when ...
8 years, 3 months ago (2012-08-30 20:35:37 UTC) #12
mmenke
http://codereview.chromium.org/10873018/diff/37001/net/dns/dns_config_service.cc File net/dns/dns_config_service.cc (right): http://codereview.chromium.org/10873018/diff/37001/net/dns/dns_config_service.cc#newcode212 net/dns/dns_config_service.cc:212: return; // Let it time out. Should we stop ...
8 years, 3 months ago (2012-08-31 15:05:59 UTC) #13
szym
I moved simplified the logic. |watch_failed_| is equivalent to saying we |have_hosts_| or |have_config_| when ...
8 years, 3 months ago (2012-08-31 15:55:57 UTC) #14
mmenke
LGTM http://codereview.chromium.org/10873018/diff/37001/net/dns/dns_config_service.cc File net/dns/dns_config_service.cc (right): http://codereview.chromium.org/10873018/diff/37001/net/dns/dns_config_service.cc#newcode212 net/dns/dns_config_service.cc:212: return; // Let it time out. On 2012/08/31 ...
8 years, 3 months ago (2012-08-31 16:04:03 UTC) #15
mmenke
http://codereview.chromium.org/10873018/diff/45005/net/dns/dns_config_service.cc File net/dns/dns_config_service.cc (right): http://codereview.chromium.org/10873018/diff/45005/net/dns/dns_config_service.cc#newcode217 net/dns/dns_config_service.cc:217: callback_.Run(DnsConfig()); On 2012/08/31 16:04:03, Matt Menke wrote: > May ...
8 years, 3 months ago (2012-08-31 16:04:48 UTC) #16
szym
Thanks! On 2012/08/31 16:04:03, Matt Menke wrote: > LGTM >
8 years, 3 months ago (2012-08-31 16:09:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10873018/49001
8 years, 3 months ago (2012-08-31 16:13:15 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-08-31 19:52:43 UTC) #19
Change committed as 154485

Powered by Google App Engine
This is Rietveld 408576698