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

Issue 238433003: Provide Shill IP Address to myIpAddress() (Closed)

Created:
6 years, 8 months ago by stevenjb
Modified:
6 years, 6 months ago
Reviewers:
eroman, sky
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Provide Shill IP Address to myIpAddress() On Chrome OS we need to get the IP Address to use for myIpAddress() from Shill since gethostname() returns localhost. BUG=175652 TBR=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277679

Patch Set 1 #

Total comments: 1

Patch Set 2 : Non proxy specific implementation #

Total comments: 4

Patch Set 3 : Move logic to DoDnsOp / HostResolver #

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : Implement HostResolverImplChromeos #

Patch Set 6 : . #

Patch Set 7 : Fix, move to src/chromeos #

Patch Set 8 : Add unit test #

Total comments: 10

Patch Set 9 : Rebase #

Patch Set 10 : Address feedback #

Patch Set 11 : . #

Patch Set 12 : Shut down correctly in unittest. #

Total comments: 5

Patch Set 13 : Re-factor HostResolverImpl construction #

Patch Set 14 : Have NetowrkObserver manage its own lifetime #

Total comments: 4

Patch Set 15 : Rebase + feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -121 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -2 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/device_state.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A chromeos/network/host_resolver_impl_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +80 lines, -0 lines 0 comments Download
A chromeos/network/host_resolver_impl_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +214 lines, -0 lines 0 comments Download
A chromeos/network/host_resolver_impl_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +171 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M net/dns/host_resolver.h View 1 2 3 4 13 3 chunks +6 lines, -5 lines 0 comments Download
M net/dns/host_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -19 lines 0 comments Download
M net/dns/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +13 lines, -14 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +30 lines, -32 lines 0 comments Download
M net/dns/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 14 chunks +32 lines, -43 lines 0 comments Download
M net/tools/gdig/gdig.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
stevenjb
This looks like it might be a reasonable way to do this. We need to ...
6 years, 8 months ago (2014-04-15 00:45:52 UTC) #1
eroman
This change does not work, please test it. The function that you need to change ...
6 years, 8 months ago (2014-04-16 02:12:52 UTC) #2
stevenjb
On 2014/04/16 02:12:52, eroman wrote: > This change does not work, please test it. > ...
6 years, 8 months ago (2014-04-16 17:05:50 UTC) #3
eroman
On Wed, Apr 16, 2014 at 10:05 AM, <stevenjb@chromium.org> wrote: > On 2014/04/16 02:12:52, eroman ...
6 years, 8 months ago (2014-04-16 17:16:31 UTC) #4
stevenjb
OK, on the Chrome/ChromeOS side of things, after a few fumbled efforts, I realized that ...
6 years, 8 months ago (2014-04-17 00:02:40 UTC) #5
stevenjb
(PTAL)
6 years, 8 months ago (2014-04-17 00:02:50 UTC) #6
stevenjb
ping
6 years, 8 months ago (2014-04-21 19:25:23 UTC) #7
eroman
https://codereview.chromium.org/238433003/diff/20001/net/proxy/proxy_resolver_v8_tracing.cc File net/proxy/proxy_resolver_v8_tracing.cc (right): https://codereview.chromium.org/238433003/diff/20001/net/proxy/proxy_resolver_v8_tracing.cc#newcode930 net/proxy/proxy_resolver_v8_tracing.cc:930: if (op == MY_IP_ADDRESS || op == MY_IP_ADDRESS_EX) { ...
6 years, 8 months ago (2014-04-21 22:54:47 UTC) #8
stevenjb
https://codereview.chromium.org/238433003/diff/20001/net/proxy/proxy_resolver_v8_tracing.cc File net/proxy/proxy_resolver_v8_tracing.cc (right): https://codereview.chromium.org/238433003/diff/20001/net/proxy/proxy_resolver_v8_tracing.cc#newcode930 net/proxy/proxy_resolver_v8_tracing.cc:930: if (op == MY_IP_ADDRESS || op == MY_IP_ADDRESS_EX) { ...
6 years, 8 months ago (2014-04-22 22:32:55 UTC) #9
stevenjb
PTAL It wasn't entirely clear to me whether MY_IP_ADDRESS_EX wants just the ipv6 address (if ...
6 years, 8 months ago (2014-04-23 18:25:35 UTC) #10
stevenjb
ping
6 years, 7 months ago (2014-04-28 18:29:06 UTC) #11
eroman
Looking again, apologies for delay!
6 years, 7 months ago (2014-05-01 22:56:48 UTC) #12
eroman
https://codereview.chromium.org/238433003/diff/60001/chrome/browser/chromeos/net/chrome_network_watcher.cc File chrome/browser/chromeos/net/chrome_network_watcher.cc (right): https://codereview.chromium.org/238433003/diff/60001/chrome/browser/chromeos/net/chrome_network_watcher.cc#newcode23 chrome/browser/chromeos/net/chrome_network_watcher.cc:23: g_browser_process->io_thread()->globals()->host_resolver->SetMyIpAddresses( This is not correct: g_browser_process is non-threadsafe and ...
6 years, 7 months ago (2014-05-02 01:48:17 UTC) #13
stevenjb
https://codereview.chromium.org/238433003/diff/60001/net/dns/host_resolver.h File net/dns/host_resolver.h (right): https://codereview.chromium.org/238433003/diff/60001/net/dns/host_resolver.h#newcode187 net/dns/host_resolver.h:187: bool ResolveFromMyIpAddress(bool include_ipv6, On 2014/05/02 01:48:18, eroman wrote: > ...
6 years, 7 months ago (2014-05-02 16:56:12 UTC) #14
stevenjb
OK, this is pretty much a completely new implementation, which should hopefully be a significant ...
6 years, 6 months ago (2014-06-03 23:32:31 UTC) #15
eroman
Thanks Steven, I will review it tomorrow!
6 years, 6 months ago (2014-06-03 23:45:30 UTC) #16
stevenjb
Friendly ping :)
6 years, 6 months ago (2014-06-05 15:54:07 UTC) #17
eroman
Thanks, good improvement over earlier version! Basically L G T M after some comments. https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc ...
6 years, 6 months ago (2014-06-05 22:58:24 UTC) #18
stevenjb
https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc#newcode129 chromeos/network/host_resolver_impl_chromeos.cc:129: ProcTaskParams(NULL, options.max_retry_attempts), On 2014/06/05 22:58:24, eroman wrote: > Can ...
6 years, 6 months ago (2014-06-06 16:06:04 UTC) #19
stevenjb
https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc#newcode167 chromeos/network/host_resolver_impl_chromeos.cc:167: ui_message_loop_->DeleteSoon( On 2014/06/06 16:06:03, stevenjb wrote: > On 2014/06/05 ...
6 years, 6 months ago (2014-06-06 17:24:18 UTC) #20
stevenjb
https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/140001/chromeos/network/host_resolver_impl_chromeos.cc#newcode194 chromeos/network/host_resolver_impl_chromeos.cc:194: if (info.hostname() != GetHostName() || !network_observer_) On 2014/06/06 16:06:03, ...
6 years, 6 months ago (2014-06-06 17:34:11 UTC) #21
stevenjb
PTAL (Note: asan failures are not specific to this CL)
6 years, 6 months ago (2014-06-06 23:06:24 UTC) #22
eroman
https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc#newcode115 chromeos/network/host_resolver_impl_chromeos.cc:115: // construction to reduce duplicate code. I still think ...
6 years, 6 months ago (2014-06-09 22:37:11 UTC) #23
stevenjb
PTAL https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc#newcode115 chromeos/network/host_resolver_impl_chromeos.cc:115: // construction to reduce duplicate code. On 2014/06/09 ...
6 years, 6 months ago (2014-06-10 22:04:55 UTC) #24
eroman
https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc File chromeos/network/host_resolver_impl_chromeos.cc (right): https://codereview.chromium.org/238433003/diff/220001/chromeos/network/host_resolver_impl_chromeos.cc#newcode169 chromeos/network/host_resolver_impl_chromeos.cc:169: delete network_observer; On 2014/06/10 22:04:55, stevenjb wrote: > On ...
6 years, 6 months ago (2014-06-12 04:13:37 UTC) #25
eroman
To be clear, the final suggestions A and B are exclusive - either of them ...
6 years, 6 months ago (2014-06-12 04:18:23 UTC) #26
stevenjb
On 2014/06/12 04:18:23, eroman wrote: > To be clear, the final suggestions A and B ...
6 years, 6 months ago (2014-06-12 19:19:20 UTC) #27
stevenjb
Ping :)
6 years, 6 months ago (2014-06-16 21:58:47 UTC) #28
eroman
LGTM. I didn't read the unittest refactors too carefully, but the rest looks good. https://codereview.chromium.org/238433003/diff/300001/chromeos/network/host_resolver_impl_chromeos.cc ...
6 years, 6 months ago (2014-06-16 22:37:48 UTC) #29
stevenjb
Thanks a ton for the reviews! TBR: sky@ for relatively minor changes to io_thread.cc. https://codereview.chromium.org/238433003/diff/300001/chromeos/network/host_resolver_impl_chromeos.cc ...
6 years, 6 months ago (2014-06-16 23:03:53 UTC) #30
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 6 months ago (2014-06-16 23:04:59 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/238433003/320001
6 years, 6 months ago (2014-06-16 23:07:48 UTC) #32
commit-bot: I haz the power
6 years, 6 months ago (2014-06-17 09:21:06 UTC) #33
Message was sent while issue was closed.
Change committed as 277679

Powered by Google App Engine
This is Rietveld 408576698