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

Unified Diff: chrome/browser/io_thread.cc

Issue 2892613002: IOThread: Use URLRequestContextBuilder::NetworkSessionParams. (Closed)
Patch Set: Merge 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/io_thread.h ('k') | components/network_session_configurator/network_session_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 019e63e38a510b86bb516274c8b102ee72c3a205..4ab0fff166861d5520a776ee42a805aae7b06743 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -108,7 +108,6 @@
#include "net/url_request/static_http_user_agent_settings.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_context_builder.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_context_storage.h"
#include "net/url_request/url_request_job_factory_impl.h"
@@ -790,8 +789,10 @@ void IOThread::ClearHostCache(
host_cache->ClearForHosts(host_filter);
}
-const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const {
- return params_;
+net::HttpNetworkSession::Params IOThread::NetworkSessionParams() const {
+ net::HttpNetworkSession::Params session_params;
+ params_.ConfigureSessionParams(&session_params);
+ return session_params;
}
void IOThread::DisableQuic() {
@@ -901,7 +902,7 @@ void IOThread::ConstructSystemRequestContext() {
std::move(system_proxy_config_service_), command_line,
WpadQuickCheckEnabled(), PacHttpsUrlStrippingEnabled()));
- net::HttpNetworkSession::Params system_params(params_);
+ net::HttpNetworkSession::Params system_params(NetworkSessionParams());
net::URLRequestContextBuilder::SetHttpNetworkSessionComponents(
context, &system_params);
@@ -936,7 +937,7 @@ void IOThread::ConfigureParamsFromFieldTrialsAndCommandLine(
const base::CommandLine& command_line,
bool is_quic_allowed_by_policy,
bool http_09_on_non_default_ports_enabled,
- net::HttpNetworkSession::Params* params) {
+ net::URLRequestContextBuilder::HttpNetworkSessionParams* params) {
std::string quic_user_agent_id = chrome::GetChannelString();
if (!quic_user_agent_id.empty())
quic_user_agent_id.push_back(' ');
« no previous file with comments | « chrome/browser/io_thread.h ('k') | components/network_session_configurator/network_session_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698