New issue
Advanced search Search tips

Issue 757530 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug


Participants' hotlists:
media-router-follow-up


Sign in to add a comment

Build no longer works with enable_mdns=false

Project Member Reported by thestig@chromium.org, Aug 21 2017

Issue description

In the GN config, the enable_service_discovery variable is tied to to the enable_mdns variable. One can manually set enable_mdns = false and the build used to work, but that is no longer the case.

This is probably due to r472149 which moved some mdns code out of an if (enable_service_discovery) block in chrome/browser/extensions/BUILD.gn and into chrome/browser/media/router/discovery/BUILD.gn. The media router build config is gated only on enable_extensions.
 

Comment 1 by mfo...@chromium.org, Aug 21 2017

Isn't mdns the only service discovery implementation?  I wonder if enable_local_discovery without enable_mdns makes any sense.

I didn't write any of this code originally, so I'm not super knowledgable about all this.

FWIW, in chrome/common/features.gni, we have: enable_service_discovery = enable_mdns || is_mac

and in net/features.gni, we have: enable_mdns = is_win || is_linux

I haven't checked all the uses of the two variables to figure out when it's appropriate to use one vs. the other.
I forgot to mention the real motivation comes from being able to build with printing turned off. Previously, the build config that would do that is:

enable_print_preview = false
enable_basic_printing = false
enable_mdns = false
enable_pdf = false

But now this build config does not work anymore. Doing some local hacking, I came up with https://chromium-review.googlesource.com/624562 to get it working again. It's probably not right, but I'm just throwing the CL out there for those interested.

Comment 4 by sko...@chromium.org, Aug 28 2017

Cc: -zhaobin@chromium.org
Owner: zhaobin@chromium.org
Status: Assigned (was: Untriaged)
Bin, can you PTAL?
Mark, if enable_service_discovery = false, do we disable both DIAL and mDNS discovery, or just disable mDNS (DIAL still work, dual discovery still work, Cast devices will still be available).

Comment 6 by mfo...@chromium.org, Sep 15 2017

No, I don't think we should change the meaning of the flag.  Setting it to false should just disable the local discovery backend, which is mDNS. I guess we need to guard some of the source we moved that depends on enable_service_discovery.

I don't really know the history or motivations for these flags, maybe reaching out to the local discovery OWNERs (gene@ and vitalybuka@) might shed some light.

Comment 7 by amp@chromium.org, Mar 30 2018

Owner: ----
Status: Available (was: Assigned)
Cc: powerb@chromium.org

Sign in to add a comment