summaryrefslogtreecommitdiffstats
path: root/components/cronet
diff options
context:
space:
mode:
Diffstat (limited to 'components/cronet')
-rw-r--r--components/cronet/url_request_context_config.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index 329d9a0..708a570 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -44,6 +44,8 @@ const char kQuicMigrateSessionsOnNetworkChange[] =
const char kQuicPreferAes[] = "prefer_aes";
const char kQuicUserAgentId[] = "user_agent_id";
const char kQuicMigrateSessionsEarly[] = "migrate_sessions_early";
+const char kQuicDisableBidirectionalStreams[] =
+ "quic_disable_bidirectional_streams";
// AsyncDNS experiment dictionary name.
const char kAsyncDnsFieldTrialName[] = "AsyncDNS";
@@ -168,6 +170,13 @@ void ParseAndSetExperimentalOptions(
context_builder->set_quic_migrate_sessions_early(
quic_migrate_sessions_early);
}
+
+ bool quic_disable_bidirectional_streams = false;
+ if (quic_args->GetBoolean(kQuicDisableBidirectionalStreams,
+ &quic_disable_bidirectional_streams)) {
+ context_builder->set_quic_disable_bidirectional_streams(
+ quic_disable_bidirectional_streams);
+ }
}
const base::DictionaryValue* async_dns_args = nullptr;