Hi,
I have been trying to reduce the chrome binary image size by disabling certain features using build args as the first step. The current stripped chrome size is 167MB (ARM), but aiming to bring it down under 100 MB and not sure if that is possible.
When I do this 'enable_media_remoting = false', I expect it to work but it fails for undefined symbol:
ld.lld: error: undefined symbol: CastRemotingConnector::Get(content::WebContents*)
>>> referenced by media_router_desktop.cc
when checking the source, it's not under any compilation flag.
void MediaRouterDesktop::CreateRoute(const MediaSource::Id& source_id,
const MediaSink::Id& sink_id,
const url::Origin& origin,
content::WebContents* web_contents,
MediaRouteResponseCallback callback,
base::TimeDelta timeout) {
.
.
.
const MediaSource source(source_id);
if (source.IsTabMirroringSource()) {
// Ensure the CastRemotingConnector is created before mirroring starts.
CastRemotingConnector* const connector =
CastRemotingConnector::Get(web_contents);
connector->ResetRemotingPermission();
MediaRouterMojoMetrics::RecordTabMirroringMetrics(web_contents);
}
If this is required by default, why do we need to have a build arg to enable/disable this feature?
Any thoughts?
Thanks,
-M