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

Unified Diff: chrome/browser/profiles/profile_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
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chromecast/browser/url_request_context_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 88755d5ae49c36bea60f24a92c1b4e114405463b..fd34c47de89521bea4051bde28b69297a5837b84 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -1309,19 +1309,21 @@ ProfileIOData::CreateHttpNetworkSession(
IOThread* 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();
}
- if (data_reduction_proxy_io_data_.get())
- params.proxy_delegate = data_reduction_proxy_io_data_->proxy_delegate();
+ if (data_reduction_proxy_io_data_.get()) {
+ session_context.proxy_delegate =
+ data_reduction_proxy_io_data_->proxy_delegate();
+ }
- 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> ProfileIOData::CreateMainHttpFactory(
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chromecast/browser/url_request_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698