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

Issue 10389098: [Sync] Make ChromeAsyncSocket use only the hostname on connect (Closed)

Created:
8 years, 7 months ago by akalin
Modified:
8 years, 7 months ago
Reviewers:
rlarocque
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Make ChromeAsyncSocket use only the hostname on connect This is because DNS resolution should be done by its ResolvingClientSocketFactory (which may resolve through a proxy). This is just tightening up the preconditions as ChromeAsyncSocket's callers were already providing the hostname. Remove some uses of base::Unretained. Some other minor cleanup. BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136681

Patch Set 1 #

Patch Set 2 : More tweaks #

Total comments: 3

Patch Set 3 : Add comment #

Total comments: 1

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -66 lines) Patch
M jingle/notifier/base/chrome_async_socket.h View 1 2 3 4 chunks +13 lines, -13 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket.cc View 1 12 chunks +31 lines, -27 lines 0 comments Download
M jingle/notifier/base/chrome_async_socket_unittest.cc View 1 2 3 5 chunks +25 lines, -22 lines 0 comments Download
M jingle/notifier/base/proxy_resolving_client_socket.h View 1 chunk +6 lines, -4 lines 0 comments Download
M jingle/notifier/base/proxy_resolving_client_socket.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M jingle/notifier/base/xmpp_client_socket_factory.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
akalin
+rlarocque for review
8 years, 7 months ago (2012-05-11 19:29:39 UTC) #1
rlarocque
The change looks OK, except for that one concern in the test code. I'm curious, ...
8 years, 7 months ago (2012-05-11 20:04:18 UTC) #2
akalin
Addressed comments, PTAL https://chromiumcodereview.appspot.com/10389098/diff/7/jingle/notifier/base/chrome_async_socket_unittest.cc File jingle/notifier/base/chrome_async_socket_unittest.cc (right): https://chromiumcodereview.appspot.com/10389098/diff/7/jingle/notifier/base/chrome_async_socket_unittest.cc#newcode157 jingle/notifier/base/chrome_async_socket_unittest.cc:157: net::AddressList::CreateFromIPAddress(resolved_addr, addr_.port()); On 2012/05/11 20:04:18, rlarocque ...
8 years, 7 months ago (2012-05-11 20:32:20 UTC) #3
akalin
On 2012/05/11 20:04:18, rlarocque wrote: > I'm curious, though: what do you have against IP ...
8 years, 7 months ago (2012-05-11 20:35:01 UTC) #4
rlarocque
Thanks for the explanation. LGTM. https://chromiumcodereview.appspot.com/10389098/diff/7/jingle/notifier/base/chrome_async_socket_unittest.cc File jingle/notifier/base/chrome_async_socket_unittest.cc (right): https://chromiumcodereview.appspot.com/10389098/diff/7/jingle/notifier/base/chrome_async_socket_unittest.cc#newcode157 jingle/notifier/base/chrome_async_socket_unittest.cc:157: net::AddressList::CreateFromIPAddress(resolved_addr, addr_.port()); On 2012/05/11 ...
8 years, 7 months ago (2012-05-11 20:46:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10389098/7006
8 years, 7 months ago (2012-05-11 20:58:13 UTC) #6
akalin
8 years, 7 months ago (2012-05-11 20:58:45 UTC) #7
On 2012/05/11 20:46:16, rlarocque wrote:
> I'd feel slightly better about this if the hostname was "localhost", but I'm
OK
> with this either way.

That would be less confusing indeed.  Done.

Also added a comment clarifying that a hostname that is a stringified IP address
(e.g. "127.0.0.1") is ok.

Powered by Google App Engine
This is Rietveld 408576698