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

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

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Rebase 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/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 8c330f94d79545b56f887b9a6711474de2bb2dad..422f658db0e292c9c600a37c095683a4ff6bb6e6 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -150,6 +150,13 @@ void OffTheRecordProfileImpl::Init() {
TrackZoomLevelsFromParent();
+ DCHECK(!net_pref_observer_);
+ NetPrefObserver::UpdateNetParamsCallback update_net_params_callback =
+ base::Bind(&OffTheRecordProfileIOData::Handle::UpdateNetParamsOnIOThread,
+ base::Unretained(io_data_.get()));
+ net_pref_observer_ =
+ base::MakeUnique<NetPrefObserver>(prefs_, update_net_params_callback);
+
#if BUILDFLAG(ENABLE_PLUGINS)
ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
this, io_data_->GetResourceContextNoInit());

Powered by Google App Engine
This is Rietveld 408576698