Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc

Issue 2907463002: Split HttpNetworkSession::Params into two structs. (Closed)
Patch Set: Response to comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
- &params);
+ 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(
« no previous file with comments | « ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.mm ('k') | ios/components/io_thread/ios_io_thread.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698