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

Unified Diff: chrome/browser/profiles/profile_impl_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_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 95dd07c332f41deceeff51f3501f282773b07d4c..3861a815d1a655a333d695b4fa9c02345b2d9f7d 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -370,6 +370,16 @@ void ProfileImplIOData::Handle::ClearNetworkingHistorySince(
completion));
}
+void ProfileImplIOData::Handle::UpdateNetParams(
+ NetPrefObserver::NetParamsChange net_params_change) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(&ProfileIOData::UpdateNetParamsOnIOThread,
+ base::Unretained(io_data_), net_params_change));
+}
+
void ProfileImplIOData::Handle::LazyInitialize() const {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (initialized_)

Powered by Google App Engine
This is Rietveld 408576698