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

Unified Diff: chrome/browser/io_thread.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Move ApplySettingsOnIOThread out of NetHttpSessionParamsObserver Created 3 years, 11 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
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 00f844c2cef98d4ad119b5f52d66344d0a87766b..f3555bcb6d844ca83932eca54074f723575f7118 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -797,6 +797,18 @@ const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const {
return params_;
}
+void IOThread::UpdateNetworkSessionParams(
+ net::HttpNetworkSession::ParamsUpdate params_update) {
+ params_.enable_quic = params_update.enable_quic_new;
+
+ if (globals_->system_http_network_session)
+ globals_->system_http_network_session->UpdateParams(params_update);
+
+ if (globals_->proxy_script_fetcher_http_network_session)
+ globals_->proxy_script_fetcher_http_network_session->UpdateParams(
+ params_update);
+}
+
base::TimeTicks IOThread::creation_time() const {
return creation_time_;
}

Powered by Google App Engine
This is Rietveld 408576698