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

Issue 117853004: "Reland" of r241209. DialServiceImpl now binds to all ipv4 and interfaces instead of just the first (Closed)

Created:
7 years ago by imcheng
Modified:
7 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

"Reland" of r241209. DialServiceImpl now binds to all ipv4 interfaces instead of just the first ipv4 found. Dedup is done using address family + interface index. It now also checks if there are any other open sockets when notifying observers on error and sends a different error code (DIAL_SERVICE_NO_INTERFACES instead of the usual DIAL_SERVICE_SOCKET_ERROR) if there are no other open sockets. The error codes are treated the same upstream currently. Later we should make sure DIAL_SERVICE_SOCKET_ERROR doesn't clear the device list. Added unit tests for multiple interfaces and open sockets checking. TEST=unit tests, did some manual testing at the lab. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242090

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -13 lines) Patch
M chrome/browser/extensions/api/dial/dial_service.h View 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service.cc View 6 chunks +39 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service_unittest.cc View 1 chunk +29 lines, -0 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
imcheng
7 years ago (2013-12-19 00:04:29 UTC) #1
Alpha Left Google
On 2013/12/19 00:04:29, imcheng1 wrote: LGTM.
7 years ago (2013-12-19 00:28:47 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/117853004/40001
7 years ago (2013-12-19 02:21:13 UTC) #3
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/dial/dial_service.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-19 02:21:14 UTC) #4
imcheng
Hey Alpha, I fixed the merge issue. Mark, can you please take a look as ...
7 years ago (2013-12-19 13:38:07 UTC) #5
mark a. foltz
LGTM https://codereview.chromium.org/117853004/diff/200001/chrome/browser/extensions/api/dial/dial_service_unittest.cc File chrome/browser/extensions/api/dial/dial_service_unittest.cc (right): https://codereview.chromium.org/117853004/diff/200001/chrome/browser/extensions/api/dial/dial_service_unittest.cc#newcode70 chrome/browser/extensions/api/dial/dial_service_unittest.cc:70: EXPECT_EQ(1u, dial_service_.dial_sockets_.size()); I don't think it's necessary to ...
7 years ago (2013-12-19 17:27:41 UTC) #6
Alpha Left Google
On 2013/12/19 17:27:41, mark a. foltz wrote: > LGTM > > https://codereview.chromium.org/117853004/diff/200001/chrome/browser/extensions/api/dial/dial_service_unittest.cc > File chrome/browser/extensions/api/dial/dial_service_unittest.cc ...
7 years ago (2013-12-19 19:22:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/117853004/200001
7 years ago (2013-12-19 19:25:29 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=108218
7 years ago (2013-12-20 00:44:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/117853004/200001
7 years ago (2013-12-20 00:49:12 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=108397
7 years ago (2013-12-20 09:05:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/117853004/200001
7 years ago (2013-12-20 11:49:26 UTC) #12
commit-bot: I haz the power
7 years ago (2013-12-20 13:14:10 UTC) #13
Message was sent while issue was closed.
Change committed as 242090

Powered by Google App Engine
This is Rietveld 408576698