diff options
Diffstat (limited to 'ios/crnet/crnet_environment.mm')
-rw-r--r-- | ios/crnet/crnet_environment.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm index bba2eb1..57bf231 100644 --- a/ios/crnet/crnet_environment.mm +++ b/ios/crnet/crnet_environment.mm @@ -451,7 +451,12 @@ void CrNetEnvironment::InitializeOnNetworkThread() { base::WorkerPool::GetTaskRunner(true)); } - net::HttpCache* main_cache = new net::HttpCache(params, main_backend); + // TODO(mmenke): These really shouldn't be leaked. + // See https://crbug.com/523858. + net::HttpNetworkSession* http_network_session = + new net::HttpNetworkSession(params); + net::HttpCache* main_cache = new net::HttpCache( + http_network_session, main_backend, true /* set_up_quic_server_info */); main_context_->set_http_transaction_factory(main_cache); // Cookies |