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

Issue 12150002: - Invoke FinishDiscovery() if no network interfaces are detected. (Closed)

Created:
7 years, 10 months ago by mark a. foltz
Modified:
7 years, 10 months ago
Reviewers:
Matt Perry, justinlin
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

- Invoke FinishDiscovery() if no network interfaces are detected. - Send multiple requests per discovery cycle using a timer object. - Refactor to make it possible to test code with timers. - Add unit tests for multiple discovery. BUG=166550, 170250 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181838

Patch Set 1 #

Patch Set 2 : Fixed unit test. #

Total comments: 12

Patch Set 3 : Respond to code review comments. #

Patch Set 4 : Use MessageLoop in unit test. #

Patch Set 5 : Remove unused import. #

Patch Set 6 : Simplify DialService::SendNetworkList #

Total comments: 8

Patch Set 7 : Documentation and formatting fixes. #

Patch Set 8 : Change DCHECK to CHECK for asan #

Patch Set 9 : Use wildcard instead of localhost IP for mac_rel trybot #

Patch Set 10 : Merge with r181795 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -77 lines) Patch
M chrome/browser/extensions/api/dial/dial_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service.cc View 1 2 3 4 5 6 7 8 9 9 chunks +93 lines, -70 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
mark a. foltz
Hi Justin, PTAL.
7 years, 10 months ago (2013-02-07 02:49:09 UTC) #1
justinlin
Cool, I think I understand what this does now. Looks good, minor comments, but I'd ...
7 years, 10 months ago (2013-02-07 09:03:24 UTC) #2
mark a. foltz
Thanks for the review. Let's chat about the timer stuff since I'm also a little ...
7 years, 10 months ago (2013-02-07 22:36:55 UTC) #3
justinlin
https://codereview.chromium.org/12150002/diff/2001/chrome/browser/extensions/api/dial/dial_service.cc File chrome/browser/extensions/api/dial/dial_service.cc (right): https://codereview.chromium.org/12150002/diff/2001/chrome/browser/extensions/api/dial/dial_service.cc#newcode250 chrome/browser/extensions/api/dial/dial_service.cc:250: if (request_interval_ <= TimeDelta::FromSeconds(0)) { On 2013/02/07 22:36:55, mark ...
7 years, 10 months ago (2013-02-07 22:42:05 UTC) #4
mark a. foltz
https://codereview.chromium.org/12150002/diff/2001/chrome/browser/extensions/api/dial/dial_service.cc File chrome/browser/extensions/api/dial/dial_service.cc (right): https://codereview.chromium.org/12150002/diff/2001/chrome/browser/extensions/api/dial/dial_service.cc#newcode250 chrome/browser/extensions/api/dial/dial_service.cc:250: if (request_interval_ <= TimeDelta::FromSeconds(0)) { On 2013/02/07 22:42:05, justinlin ...
7 years, 10 months ago (2013-02-08 00:04:50 UTC) #5
mark a. foltz
+Matt for OWNERS review. Matt, PTAL when you have a chance. Thanks!
7 years, 10 months ago (2013-02-08 01:04:40 UTC) #6
justinlin
lgtm https://codereview.chromium.org/12150002/diff/15001/chrome/browser/extensions/api/dial/dial_service.cc File chrome/browser/extensions/api/dial/dial_service.cc (right): https://codereview.chromium.org/12150002/diff/15001/chrome/browser/extensions/api/dial/dial_service.cc#newcode111 chrome/browser/extensions/api/dial/dial_service.cc:111: kDialRequestIntervalMillis) + Align this with the "(" above. ...
7 years, 10 months ago (2013-02-08 08:56:20 UTC) #7
mark a. foltz
Thanks. https://codereview.chromium.org/12150002/diff/15001/chrome/browser/extensions/api/dial/dial_service.cc File chrome/browser/extensions/api/dial/dial_service.cc (right): https://codereview.chromium.org/12150002/diff/15001/chrome/browser/extensions/api/dial/dial_service.cc#newcode111 chrome/browser/extensions/api/dial/dial_service.cc:111: kDialRequestIntervalMillis) + On 2013/02/08 08:56:20, justinlin wrote: > ...
7 years, 10 months ago (2013-02-08 22:07:58 UTC) #8
justinlin
Hmm, I think you were right about DCHECK. Looks like your test failed on the ...
7 years, 10 months ago (2013-02-09 21:55:24 UTC) #9
justinlin
Also, I'm getting the same mac_asan failures, so I think that's a different problem, and ...
7 years, 10 months ago (2013-02-09 21:56:12 UTC) #10
Matt Perry
just skimmed, LGTM
7 years, 10 months ago (2013-02-11 21:43:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/12150002/13004
7 years, 10 months ago (2013-02-12 00:59:10 UTC) #12
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 03:46:30 UTC) #13
Message was sent while issue was closed.
Change committed as 181838

Powered by Google App Engine
This is Rietveld 408576698