Index: ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc |
diff --git a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc |
index 16fb60e0885dd44c33c91d91c4c29a6040d5faeb..bfa51b915d813127d8778539270fae5995a4e7d4 100644 |
--- a/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc |
+++ b/ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc |
@@ -484,17 +484,17 @@ ChromeBrowserStateIOData::CreateHttpNetworkSession( |
IOSChromeIOThread* const io_thread = profile_params.io_thread; |
- net::HttpNetworkSession::Params params(io_thread->NetworkSessionParams()); |
- net::URLRequestContextBuilder::SetHttpNetworkSessionComponents(context, |
- ¶ms); |
+ net::HttpNetworkSession::Context session_context; |
+ net::URLRequestContextBuilder::SetHttpNetworkSessionComponents( |
+ context, &session_context); |
if (!IsOffTheRecord() && io_thread->globals()->network_quality_estimator) { |
- params.socket_performance_watcher_factory = |
+ session_context.socket_performance_watcher_factory = |
io_thread->globals() |
->network_quality_estimator->GetSocketPerformanceWatcherFactory(); |
} |
- return std::unique_ptr<net::HttpNetworkSession>( |
- new net::HttpNetworkSession(params)); |
+ return std::unique_ptr<net::HttpNetworkSession>(new net::HttpNetworkSession( |
+ io_thread->NetworkSessionParams(), session_context)); |
} |
std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateMainHttpFactory( |