fix: remove enable_data_url_support from OnNetworkServiceCreated

data URLs are _always_ enabled in the network service now and this is
enforced in the Content layer.

Refs: 1512337
This commit is contained in:
Samuel Attard 2019-03-21 19:53:33 -07:00
parent 406ceaabd1
commit 2bf740d2fe

View file

@ -249,9 +249,6 @@ SystemNetworkContextManager::CreateNetworkContextParams() {
network_context_params->http_cache_enabled = false;
// These are needed for PAC scripts that use file or data URLs (Or FTP URLs?).
// TODO(crbug.com/839566): remove file support for all cases.
network_context_params->enable_data_url_support = true;
if (!base::FeatureList::IsEnabled(network::features::kNetworkService))
network_context_params->enable_file_url_support = true;
#if !BUILDFLAG(DISABLE_FTP_SUPPORT)