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

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

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: Addressed bengr comments Created 4 years, 2 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/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 eec323ba5b365c3883eb68935de4732ebd923944..7f118857876e307508c5c895bfc97bd63387572f 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -29,6 +29,7 @@
#include "chrome/browser/io_thread.h"
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/http_server_properties_manager_factory.h"
+#include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/net/quota_policy_channel_id_store.h"
#include "chrome/browser/net/sdch_owner_pref_storage.h"
@@ -212,6 +213,10 @@ void ProfileImplIOData::Handle::Init(
PreviewsServiceFactory::GetForProfile(profile_)->Initialize(
io_data_->previews_io_data_.get(),
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), profile_path);
+
+ // Initialize the UI network quality estimator service so it can
+ // read/write the prefs.
+ UINetworkQualityEstimatorServiceFactory::GetForProfile(profile_);
mmenke 2016/10/19 17:24:57 Should this be in ChromeBrowserMainExtraPartsProfi
tbansal1 2016/10/19 18:34:47 Done. I did not know about this.
}
content::ResourceContext*

Powered by Google App Engine
This is Rietveld 408576698