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

Unified Diff: chrome/browser/io_thread.cc

Issue 811073004: QUIC - don't load data from disk cache if alternate protocol map doesn't (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: renamed variable Created 6 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 8f34934df52870467cdb374c8fee132338a84422..aaf9faa131f2de89b1e008d4d2dfa95ea44de0f4 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -1060,6 +1060,8 @@ void IOThread::InitializeNetworkSessionParamsFromGlobals(
&params->quic_disable_connection_pooling);
globals.quic_load_server_info_timeout_ms.CopyToIfSet(
&params->quic_load_server_info_timeout_ms);
+ globals.quic_disable_loading_server_info_for_new_servers.CopyToIfSet(
+ &params->quic_disable_loading_server_info_for_new_servers);
globals.enable_quic_port_selection.CopyToIfSet(
&params->enable_quic_port_selection);
globals.quic_max_packet_length.CopyToIfSet(&params->quic_max_packet_length);
@@ -1210,6 +1212,8 @@ void IOThread::ConfigureQuicGlobals(
globals->quic_load_server_info_timeout_ms.set(
load_server_info_timeout_ms);
}
+ globals->quic_disable_loading_server_info_for_new_servers.set(
+ ShouldDisableLoadingServerInfoForNewServers(quic_trial_params));
globals->enable_quic_port_selection.set(
ShouldEnableQuicPortSelection(command_line));
globals->quic_connection_options =
@@ -1374,6 +1378,15 @@ int IOThread::GetQuicLoadServerInfoTimeout(
}
// static
+bool IOThread::ShouldDisableLoadingServerInfoForNewServers(
+ const VariationParameters& quic_trial_params) {
+ return LowerCaseEqualsASCII(
+ GetVariationParam(quic_trial_params,
+ "disable_loading_server_info_for_new_servers"),
+ "true");
+}
+
+// static
size_t IOThread::GetQuicMaxPacketLength(
const CommandLine& command_line,
base::StringPiece quic_trial_group,

Powered by Google App Engine
This is Rietveld 408576698