| 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));
|
| }
|
|
|