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

Issue 2873893003: [Media Router] Add features to control browser side discovery (Closed)

Created:
3 years, 7 months ago by zhaobin
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, chfremer+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, mfoltz+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Add features to control browser side discovery Split from https://codereview.chromium.org/2837363002/ - Add kEnableDialLocalDiscovery and kEnableCastDiscovery feature to turn on/off browser side DIAL and Cast discovery - Pass those features to MRP - Update unit tests cl/154204127 (landed) handles enable_dial_discovery and enable_dial_discovery flag in extension side. BUG=687375 Review-Url: https://codereview.chromium.org/2873893003 Cr-Commit-Position: refs/heads/master@{#471367} Committed: https://chromium.googlesource.com/chromium/src/+/7f161a688a7af9b17a63fea84cb0312c5c297903

Patch Set 1 #

Patch Set 2 : Add feature flag to turn on/off browser side discovery #

Total comments: 2

Patch Set 3 : rename enable_dial_discovery to enable_dial_provider_discovery #

Patch Set 4 : restore original name and add comments #

Total comments: 2

Patch Set 5 : resolve code review comments from Mark #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -38 lines) Patch
M chrome/browser/media/router/media_router_feature.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_feature.cc View 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 9 chunks +11 lines, -23 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.cc View 1 2 3 4 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/common/media_router/mojo/media_router.mojom View 3 2 chunks +11 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/media_router_bindings.js View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
zhaobin
3 years, 7 months ago (2017-05-10 18:18:17 UTC) #7
Kevin M
lgtm (but please wait for Mark; I'm not a project owner)
3 years, 7 months ago (2017-05-10 23:17:50 UTC) #8
zhaobin
+dcheng@ to review: chrome/common/media_router/mojo/media_router.mojom
3 years, 7 months ago (2017-05-10 23:19:44 UTC) #10
dcheng
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode158 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:158: config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled(); Are these booleans backwards?
3 years, 7 months ago (2017-05-11 20:43:24 UTC) #11
zhaobin
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode158 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:158: config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled(); On 2017/05/11 20:43:23, dcheng wrote: > ...
3 years, 7 months ago (2017-05-11 20:48:35 UTC) #12
dcheng
On 2017/05/11 20:48:35, zhaobin wrote: > https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc > File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): > > https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode158 > ...
3 years, 7 months ago (2017-05-11 20:57:28 UTC) #13
zhaobin
On 2017/05/11 20:57:28, dcheng wrote: > On 2017/05/11 20:48:35, zhaobin wrote: > > > https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/router/mojo/media_router_mojo_impl.cc ...
3 years, 7 months ago (2017-05-11 21:12:30 UTC) #14
dcheng
On 2017/05/11 21:12:30, zhaobin wrote: > On 2017/05/11 20:57:28, dcheng wrote: > > On 2017/05/11 ...
3 years, 7 months ago (2017-05-11 21:26:09 UTC) #15
zhaobin
@mfoltz, it seems that this confuses people: config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled(); Is it ok if we ...
3 years, 7 months ago (2017-05-11 22:35:59 UTC) #16
mark a. foltz
On 2017/05/11 at 22:35:59, zhaobin wrote: > @mfoltz, it seems that this confuses people: > ...
3 years, 7 months ago (2017-05-11 22:51:05 UTC) #17
zhaobin
On 2017/05/11 22:51:05, mark a. foltz wrote: > On 2017/05/11 at 22:35:59, zhaobin wrote: > ...
3 years, 7 months ago (2017-05-11 23:08:12 UTC) #18
zhaobin
On 2017/05/11 22:51:05, mark a. foltz wrote: > On 2017/05/11 at 22:35:59, zhaobin wrote: > ...
3 years, 7 months ago (2017-05-11 23:08:13 UTC) #19
mark a. foltz
LGTM with one nit https://codereview.chromium.org/2873893003/diff/60001/chrome/browser/media/router/mojo/media_router_mojo_test.h File chrome/browser/media/router/mojo/media_router_mojo_test.h (right): https://codereview.chromium.org/2873893003/diff/60001/chrome/browser/media/router/mojo/media_router_mojo_test.h#newcode189 chrome/browser/media/router/mojo/media_router_mojo_test.h:189: MOCK_METHOD2(InvokeRaw, In general we have ...
3 years, 7 months ago (2017-05-11 23:17:59 UTC) #20
zhaobin
https://codereview.chromium.org/2873893003/diff/60001/chrome/browser/media/router/mojo/media_router_mojo_test.h File chrome/browser/media/router/mojo/media_router_mojo_test.h (right): https://codereview.chromium.org/2873893003/diff/60001/chrome/browser/media/router/mojo/media_router_mojo_test.h#newcode189 chrome/browser/media/router/mojo/media_router_mojo_test.h:189: MOCK_METHOD2(InvokeRaw, On 2017/05/11 23:17:59, mark a. foltz wrote: > ...
3 years, 7 months ago (2017-05-12 00:16:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2873893003/80001
3 years, 7 months ago (2017-05-12 17:47:16 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 18:08:06 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7f161a688a7af9b17a63fea84cb0...

Powered by Google App Engine
This is Rietveld 408576698