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

Unified Diff: chrome/browser/profiles/off_the_record_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/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index f8838be99a4a6151e7eb0874ec9d625fddd45f91..9bc684adb7a6cbfd14e34cf433cf35a34730c30b 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -154,6 +154,15 @@ OffTheRecordProfileIOData::Handle::GetDevToolsNetworkControllerHandle() const {
return io_data_->network_controller_handle();
}
+void OffTheRecordProfileIOData::Handle::UpdateNetParams(
+ NetPrefObserver::NetParamsChange net_params_change) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(&ProfileIOData::UpdateNetParamsOnIOThread,
+ base::Unretained(io_data_), net_params_change));
+}
+
void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
if (initialized_)
return;

Powered by Google App Engine
This is Rietveld 408576698