| Index: chrome/browser/predictors/resource_prefetch_predictor_factory.cc
|
| diff --git a/chrome/browser/predictors/resource_prefetch_predictor_factory.cc b/chrome/browser/predictors/resource_prefetch_predictor_factory.cc
|
| index ef15daf1818e45408a43c35cf998e9a552f475b1..d8e78c70e1bfe30172838e8dea88fe041b1ac597 100644
|
| --- a/chrome/browser/predictors/resource_prefetch_predictor_factory.cc
|
| +++ b/chrome/browser/predictors/resource_prefetch_predictor_factory.cc
|
| @@ -17,7 +17,7 @@ namespace predictors {
|
| ResourcePrefetchPredictor* ResourcePrefetchPredictorFactory::GetForProfile(
|
| Profile* profile) {
|
| return static_cast<ResourcePrefetchPredictor*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| // static
|
| @@ -27,15 +27,16 @@ ResourcePrefetchPredictorFactory::GetInstance() {
|
| }
|
|
|
| ResourcePrefetchPredictorFactory::ResourcePrefetchPredictorFactory()
|
| - : ProfileKeyedServiceFactory("ResourcePrefetchPredictor",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "ResourcePrefetchPredictor",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| DependsOn(HistoryServiceFactory::GetInstance());
|
| DependsOn(PredictorDatabaseFactory::GetInstance());
|
| }
|
|
|
| ResourcePrefetchPredictorFactory::~ResourcePrefetchPredictorFactory() {}
|
|
|
| -ProfileKeyedService*
|
| +BrowserContextKeyedService*
|
| ResourcePrefetchPredictorFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
|
|