Description was changed from ========== [Media Router] Add features to control browser side discovery Split ...
3 years, 7 months ago
(2017-05-10 05:03:44 UTC)
#1
Description was changed from
==========
[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
BUG=687375
==========
to
==========
[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
==========
zhaobin
The CQ bit was checked by zhaobin@chromium.org to run a CQ dry run
3 years, 7 months ago
(2017-05-10 05:04:07 UTC)
#2
3 years, 7 months ago
(2017-05-11 20:57:28 UTC)
#13
On 2017/05/11 20:48:35, zhaobin wrote:
>
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/ro...
> File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right):
>
>
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/ro...
> 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:
> > Are these booleans backwards?
>
> On purpose. media_router::DialLocalDiscoveryEnabled() means browser (Media
> Router) enables DIAL discovery; extension (Media Router Provider) disables
DIAL
> discovery.
Maybe the mojo fields should have a different name then?
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
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/ro...
> > File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right):
> >
> >
>
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/ro...
> > 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:
> > > Are these booleans backwards?
> >
> > On purpose. media_router::DialLocalDiscoveryEnabled() means browser (Media
> > Router) enables DIAL discovery; extension (Media Router Provider) disables
> DIAL
> > discovery.
>
> Maybe the mojo fields should have a different name then?
Is enable_dial_provider_discovery OK?
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
On 2017/05/11 21:12:30, zhaobin wrote:
> 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/ro...
> > > File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right):
> > >
> > >
> >
>
https://codereview.chromium.org/2873893003/diff/20001/chrome/browser/media/ro...
> > > 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:
> > > > Are these booleans backwards?
> > >
> > > On purpose. media_router::DialLocalDiscoveryEnabled() means browser (Media
> > > Router) enables DIAL discovery; extension (Media Router Provider) disables
> > DIAL
> > > discovery.
> >
> > Maybe the mojo fields should have a different name then?
>
> Is enable_dial_provider_discovery OK?
LGTM with an added comment: the original name is fine, but it wasn't obvious (to
me) that having browser-side enabled discovery meant that we were disabling it
in the extension. It just looks confusing to see enabled = !enabled =)
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
@mfoltz, it seems that this confuses people:
config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled();
Is it ok if we add some comments here explaining enable browser side discovery
is disabling extension side discovery, or any suggestions of better naming?
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
On 2017/05/11 at 22:35:59, zhaobin wrote:
> @mfoltz, it seems that this confuses people:
>
> config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled();
>
> Is it ok if we add some comments here explaining enable browser side discovery
is disabling extension side discovery, or any suggestions of better naming?
Yeah that would help. For example explaining we are migrating discovery from
the external Media Route Provider to the Media Router, so we need to disable it
in the provider.
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
On 2017/05/11 22:51:05, mark a. foltz wrote:
> On 2017/05/11 at 22:35:59, zhaobin wrote:
> > @mfoltz, it seems that this confuses people:
> >
> > config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled();
> >
> > Is it ok if we add some comments here explaining enable browser side
discovery
> is disabling extension side discovery, or any suggestions of better naming?
>
> Yeah that would help. For example explaining we are migrating discovery from
> the external Media Route Provider to the Media Router, so we need to disable
it
> in the provider.
Done :)
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
On 2017/05/11 22:51:05, mark a. foltz wrote:
> On 2017/05/11 at 22:35:59, zhaobin wrote:
> > @mfoltz, it seems that this confuses people:
> >
> > config->enable_dial_discovery = !media_router::DialLocalDiscoveryEnabled();
> >
> > Is it ok if we add some comments here explaining enable browser side
discovery
> is disabling extension side discovery, or any suggestions of better naming?
>
> Yeah that would help. For example explaining we are migrating discovery from
> the external Media Route Provider to the Media Router, so we need to disable
it
> in the provider.
Done :)
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
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1494611132235960, "parent_rev": "04c17f56d6af6f1b52ef9418ed4c6bd67305954b", "commit_rev": "7f161a688a7af9b17a63fea84cb0312c5c297903"}
3 years, 7 months ago
(2017-05-12 18:07:54 UTC)
#29
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1494611132235960,
"parent_rev": "04c17f56d6af6f1b52ef9418ed4c6bd67305954b", "commit_rev":
"7f161a688a7af9b17a63fea84cb0312c5c297903"}
commit-bot: I haz the power
Description was changed from ========== [Media Router] Add features to control browser side discovery Split ...
3 years, 7 months ago
(2017-05-12 18:08:04 UTC)
#30
Message was sent while issue was closed.
Description was changed from
==========
[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
==========
to
==========
[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/+/7f161a688a7af9b17a63fea84cb0...
==========
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/7f161a688a7af9b17a63fea84cb0312c5c297903
3 years, 7 months ago
(2017-05-12 18:08:06 UTC)
#31
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
Reviewers: mark a. foltz, dcheng, Kevin M
Base URL:
Comments: 4