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

Unified Diff: chrome/browser/io_thread.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: IOS io_thread also initializes DynamicSharedParams Created 4 years 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: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 48fff7ce1b98f19df083aa38e83cccc8569e449d..f2d7d3eab932e06ae6de83fb6c3ba35212a77892 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -640,6 +640,11 @@ void IOThread::Init() {
command_line.HasSwitch(switches::kEnableTcpFastOpen);
net::CheckSupportAndMaybeEnableTCPFastOpen(always_enable_tfo_if_supported);
+ globals_->http_network_session_dynamic_shared_params.reset(
Bence 2016/12/20 14:58:07 Please consider assigning to base::MakeUnique<>()
pmarko 2016/12/20 18:00:37 Done.
+ new net::HttpNetworkSession::DynamicSharedParams());
+ params_.dynamic_shared_params =
+ globals_->http_network_session_dynamic_shared_params.get();
+
ConfigureParamsFromFieldTrialsAndCommandLine(
command_line, is_quic_allowed_by_policy_,
http_09_on_non_default_ports_enabled_, &params_);
@@ -948,7 +953,7 @@ void IOThread::ConfigureParamsFromFieldTrialsAndCommandLine(
if (command_line.HasSwitch(switches::kDisableHttp2))
params->enable_http2 = false;
- if (params->enable_quic) {
+ if (params->enable_quic()) {
if (command_line.HasSwitch(switches::kQuicConnectionOptions)) {
params->quic_connection_options =
net::QuicUtils::ParseQuicConnectionOptions(

Powered by Google App Engine
This is Rietveld 408576698