OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" | 5 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" |
6 | 6 |
7 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" | 7 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 9 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 UINetworkQualityEstimatorServiceFactory() | 27 UINetworkQualityEstimatorServiceFactory() |
28 : BrowserContextKeyedServiceFactory( | 28 : BrowserContextKeyedServiceFactory( |
29 "UINetworkQualityEstimatorService", | 29 "UINetworkQualityEstimatorService", |
30 BrowserContextDependencyManager::GetInstance()) {} | 30 BrowserContextDependencyManager::GetInstance()) {} |
31 | 31 |
32 UINetworkQualityEstimatorServiceFactory:: | 32 UINetworkQualityEstimatorServiceFactory:: |
33 ~UINetworkQualityEstimatorServiceFactory() {} | 33 ~UINetworkQualityEstimatorServiceFactory() {} |
34 | 34 |
35 KeyedService* UINetworkQualityEstimatorServiceFactory::BuildServiceInstanceFor( | 35 KeyedService* UINetworkQualityEstimatorServiceFactory::BuildServiceInstanceFor( |
36 content::BrowserContext* context) const { | 36 content::BrowserContext* context) const { |
37 return new UINetworkQualityEstimatorService(); | 37 return new UINetworkQualityEstimatorService( |
| 38 Profile::FromBrowserContext(context)); |
38 } | 39 } |
OLD | NEW |