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

Issue 9969190: [net/dns] Watch configd notifications to detect DnsConfig changes on Mac. (Closed)

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

Description

[net/dns] Watch configd notifications to detect DnsConfig changes on Mac. libresolv communicates with configd via the BSD libnotify mechanism. Using the same interface, DnsConfigService can receive signal at the exact moment new configuration is available to libresolv, then read it using res_ninit. BUG=121126 TEST=Manually poke at system configuration while DnsConfigService is running. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132698

Patch Set 1 #

Patch Set 2 : Delinted. #

Patch Set 3 : Added comments. #

Total comments: 27

Patch Set 4 : After review. #

Total comments: 7

Patch Set 5 : After more review. #

Patch Set 6 : Fixed missing ':'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -12 lines) Patch
M net/dns/dns_config_service_posix.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 2 3 4 5 4 chunks +33 lines, -8 lines 0 comments Download
M net/dns/file_path_watcher_wrapper.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A net/dns/notify_watcher_mac.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A net/dns/notify_watcher_mac.cc View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
szym
Mark, I think rsleevi's comment http://code.google.com/p/chromium/issues/detail?id=121126#c6 refers to you. My opinion (see #c8) is that ...
8 years, 8 months ago (2012-04-16 22:25:09 UTC) #1
Mark Mentovai
http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc#newcode120 net/dns/dns_config_service_posix.cc:120: // TODO(szym): Use dns_configuration_notify_key() from dnsinfo.h? Yes. Don’t hard-code. ...
8 years, 8 months ago (2012-04-17 16:27:43 UTC) #2
szym
Thanks for the thorough review. http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc#newcode120 net/dns/dns_config_service_posix.cc:120: // TODO(szym): Use dns_configuration_notify_key() ...
8 years, 8 months ago (2012-04-17 19:39:31 UTC) #3
Mark Mentovai
http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/3007/net/dns/dns_config_service_posix.cc#newcode120 net/dns/dns_config_service_posix.cc:120: // TODO(szym): Use dns_configuration_notify_key() from dnsinfo.h? szym wrote: > ...
8 years, 8 months ago (2012-04-17 19:47:39 UTC) #4
Mark Mentovai
I think this is nearly perfect now. http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc#newcode89 net/dns/dns_config_service_posix.cc:89: // Normally ...
8 years, 8 months ago (2012-04-17 19:53:54 UTC) #5
szym
All done, except... http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc#newcode89 net/dns/dns_config_service_posix.cc:89: // Normally defined in dnsinfo.h in ...
8 years, 8 months ago (2012-04-17 20:14:31 UTC) #6
Mark Mentovai
LGTM http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/9969190/diff/8001/net/dns/dns_config_service_posix.cc#newcode89 net/dns/dns_config_service_posix.cc:89: // Normally defined in dnsinfo.h in configd. szym ...
8 years, 8 months ago (2012-04-17 20:22:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9969190/13001
8 years, 8 months ago (2012-04-17 20:34:47 UTC) #8
commit-bot: I haz the power
Try job failure for 9969190-13001 (retry) (retry) on android for steps "Compile, build". It's a ...
8 years, 8 months ago (2012-04-17 20:52:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9969190/13004
8 years, 8 months ago (2012-04-17 20:52:57 UTC) #10
commit-bot: I haz the power
8 years, 8 months ago (2012-04-17 23:45:15 UTC) #11
Change committed as 132698

Powered by Google App Engine
This is Rietveld 408576698