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

Issue 1821823002: [Media Router] Conditionally enable mDNS on Windows. (Closed)

Created:
4 years, 9 months ago by btolsch
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, mcasas+watch_chromium.org, media-router+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, Wez, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Conditionally enable mDNS on Windows. This change enables mDNS on Windows only when the user is in a context related to the Media Router. Previously, a firewall prompt could be triggered on browser startup which is confusing. BUG=593167 R=apacible@chromium.org,amp@chromium.org Committed: https://crrev.com/74d51922f5dc2516ce51cb49a36c0b4180ada30e Cr-Commit-Position: refs/heads/master@{#383689}

Patch Set 1 #

Patch Set 2 : Moved EnableMdnsDiscovery() to fix tests. #

Patch Set 3 : Android and Windows compile fixes #

Patch Set 4 : Rebase #

Patch Set 5 : Windows test guard #

Patch Set 6 : UI creation before provider fix #

Total comments: 31

Patch Set 7 : Comment responses #

Patch Set 8 : Fixed compile and build dependency issues #

Total comments: 13

Patch Set 9 : enable -> ensure-enabled and firewall check callback #

Patch Set 10 : callback fix #

Patch Set 11 : Thread bundle initialization location #

Patch Set 12 : Message loop to run loop #

Total comments: 20

Patch Set 13 : Comments, build, and removing move #

Total comments: 22

Patch Set 14 : Comments, API, and single mojo call #

Patch Set 15 : Unit test #

Patch Set 16 : Windows test fix #

Patch Set 17 : Lost change to call #

Total comments: 9

Patch Set 18 : More aggressive ifdefs and comments #

Patch Set 19 : Semicolon for Windows code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -8 lines) Patch
M chrome/browser/media/android/router/media_router_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route_provider_util_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/media/router/media_route_provider_util_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.gypi View 1 2 3 4 5 6 7 8 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.mojom View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +73 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_mojo_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/router/test_helper.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 25 (5 generated)
btolsch
The extension seems to have settled and the issue around resolving the tests has a ...
4 years, 9 months ago (2016-03-22 23:46:01 UTC) #2
btolsch
It looks like the issues with Windows and Android tests have been resolved so it ...
4 years, 9 months ago (2016-03-23 21:37:23 UTC) #3
amp
lgtm
4 years, 9 months ago (2016-03-23 21:55:02 UTC) #4
apacible
Thanks for doing this! lgtm + nitpicky comments https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/android/router/media_router_android.h File chrome/browser/media/android/router/media_router_android.h (right): https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/android/router/media_router_android.h#newcode68 chrome/browser/media/android/router/media_router_android.h:68: nit: ...
4 years, 9 months ago (2016-03-23 22:04:45 UTC) #5
mark a. foltz
I would be okay naming things enableMdns(), is_mdns_enabled_, etc. since that's exactly what we are ...
4 years, 9 months ago (2016-03-24 00:04:41 UTC) #7
imcheng
https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/router/media_router_mojo_impl.cc File chrome/browser/media/router/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode91 chrome/browser/media/router/media_router_mojo_impl.cc:91: base::FilePath exe_path; Ideally this check should happen in FILE ...
4 years, 9 months ago (2016-03-24 01:17:20 UTC) #8
btolsch
Responding to comments before the next patch, especially to get more input from Derek. Thanks! ...
4 years, 9 months ago (2016-03-24 01:44:04 UTC) #9
imcheng
https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/router/media_router_mojo_impl.cc File chrome/browser/media/router/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1821823002/diff/100001/chrome/browser/media/router/media_router_mojo_impl.cc#newcode91 chrome/browser/media/router/media_router_mojo_impl.cc:91: base::FilePath exe_path; On 2016/03/24 01:44:03, btolsch wrote: > On ...
4 years, 9 months ago (2016-03-24 02:29:31 UTC) #10
btolsch
I responded to comments and moved the firewall function into a separate file. However, now ...
4 years, 9 months ago (2016-03-24 21:32:26 UTC) #11
mark a. foltz
Getting there. The test failures look like a failure to initialize a task runner for ...
4 years, 9 months ago (2016-03-24 22:59:33 UTC) #12
mark a. foltz
https://codereview.chromium.org/1821823002/diff/140001/chrome/browser/media/router/media_route_provider_util.h File chrome/browser/media/router/media_route_provider_util.h (right): https://codereview.chromium.org/1821823002/diff/140001/chrome/browser/media/router/media_route_provider_util.h#newcode13 chrome/browser/media/router/media_route_provider_util.h:13: void CanFirewallUseLocalPorts(MediaRouterMojoImpl* router); On 2016/03/24 at 22:59:33, mark a. ...
4 years, 9 months ago (2016-03-24 23:02:10 UTC) #13
btolsch
TestBrowserThreadBundle fixed the original problem once it was put in the right place (not MediaRouterMojoImplTest) ...
4 years, 9 months ago (2016-03-25 04:40:50 UTC) #14
imcheng
https://codereview.chromium.org/1821823002/diff/220001/chrome/browser/media/router/media_route_provider_util_win.cc File chrome/browser/media/router/media_route_provider_util_win.cc (right): https://codereview.chromium.org/1821823002/diff/220001/chrome/browser/media/router/media_route_provider_util_win.cc#newcode18 chrome/browser/media/router/media_route_provider_util_win.cc:18: void DoCanFirewallUseLocalPorts(base::Callback<void(bool)> callback) { const ref input https://codereview.chromium.org/1821823002/diff/220001/chrome/browser/media/router/media_route_provider_util_win.cc#newcode29 chrome/browser/media/router/media_route_provider_util_win.cc:29: ...
4 years, 9 months ago (2016-03-25 06:26:30 UTC) #15
btolsch
I addressed Derek's comments on the callback and build process, as well as other small ...
4 years, 9 months ago (2016-03-25 18:57:04 UTC) #16
mark a. foltz
https://codereview.chromium.org/1821823002/diff/240001/chrome/browser/media/router/media_router.gypi File chrome/browser/media/router/media_router.gypi (right): https://codereview.chromium.org/1821823002/diff/240001/chrome/browser/media/router/media_router.gypi#newcode58 chrome/browser/media/router/media_router.gypi:58: 'media_router_win_sources': [ This shouldn't be necessary. The build system ...
4 years, 9 months ago (2016-03-25 23:14:17 UTC) #17
btolsch
I addressed Mark's latest comments and added a test. Unfortunately the test is littered with ...
4 years, 9 months ago (2016-03-26 10:53:59 UTC) #18
mark a. foltz
LGTM % minor comments, thanks for patience w/multiple rounds of review. I think imcheng@ is ...
4 years, 8 months ago (2016-03-29 00:48:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1821823002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1821823002/360001
4 years, 8 months ago (2016-03-29 07:48:52 UTC) #22
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 8 months ago (2016-03-29 08:36:02 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 08:37:10 UTC) #25
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/74d51922f5dc2516ce51cb49a36c0b4180ada30e
Cr-Commit-Position: refs/heads/master@{#383689}

Powered by Google App Engine
This is Rietveld 408576698