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

Unified Diff: chrome/browser/io_thread.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Revert accidental format 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
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('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 637564cf66c2a58a3d71106751841dee9bce602b..943d6cb0bc5c6c181d8c3849d9f4ae63bc13fcb8 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -797,6 +797,16 @@ const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const {
return params_;
}
+void IOThread::DisableQuic() {
+ params_.enable_quic = false;
+
+ if (globals_->system_http_network_session)
+ globals_->system_http_network_session->DisableQuic();
+
+ if (globals_->proxy_script_fetcher_http_network_session)
+ globals_->proxy_script_fetcher_http_network_session->DisableQuic();
+}
+
base::TimeTicks IOThread::creation_time() const {
return creation_time_;
}
« no previous file with comments | « chrome/browser/io_thread.h ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698