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

Unified Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: More fixups 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/net/nqe/ui_network_quality_estimator_service_factory.cc
diff --git a/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc b/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc
index d8b71e028eb7a9d586f752df20f35470d785486e..50117d125acd533570405e2977ce55321d889b27 100644
--- a/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc
+++ b/chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc
@@ -32,7 +32,15 @@ UINetworkQualityEstimatorServiceFactory::
UINetworkQualityEstimatorServiceFactory::
~UINetworkQualityEstimatorServiceFactory() {}
+bool UINetworkQualityEstimatorServiceFactory::
+ ServiceIsCreatedWithBrowserContext() const {
+ // Initialize the UI network quality estimator service so it can
+ // read/write the prefs.
+ return true;
+}
+
KeyedService* UINetworkQualityEstimatorServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- return new UINetworkQualityEstimatorService();
+ return new UINetworkQualityEstimatorService(
+ Profile::FromBrowserContext(context));
}
« no previous file with comments | « chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698