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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Introduced IOThread::UpdateNetworkSessionParams 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/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index e24a0ed98b6b5a7ed0316555a30929c46e590343..3aef653a112cb43b5d60b786261ab5bdb6e6e390 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -926,6 +926,16 @@ std::unique_ptr<net::ClientCertStore> ProfileIOData::CreateClientCertStore() {
#endif
}
+void ProfileIOData::UpdateNetParamsOnIOThread(
+ NetPrefObserver::NetParamsChange net_params_change) {
+ if (!main_request_context_storage_ ||
+ !main_request_context_storage_->http_network_session())
+ return;
+
+ main_request_context_storage_->http_network_session()->SetQuicEnabled(
+ net_params_change.quic_enabled_new);
+}
+
void ProfileIOData::set_data_reduction_proxy_io_data(
std::unique_ptr<data_reduction_proxy::DataReductionProxyIOData>
data_reduction_proxy_io_data) const {

Powered by Google App Engine
This is Rietveld 408576698