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 662c00a07302ffe04890b23e8822f309a96d8a10..415cbf5a2eca40feac72031148e2eeadca89929f 100644 |
--- a/chrome/browser/predictors/resource_prefetch_predictor_factory.cc |
+++ b/chrome/browser/predictors/resource_prefetch_predictor_factory.cc |
@@ -37,7 +37,9 @@ ResourcePrefetchPredictorFactory::~ResourcePrefetchPredictorFactory() {} |
ProfileKeyedService* |
ResourcePrefetchPredictorFactory::BuildServiceInstanceFor( |
- Profile* profile) const { |
+ content::BrowserContext* context) const { |
+ Profile* profile = static_cast<Profile*>(context); |
+ |
ResourcePrefetchPredictorConfig config; |
if (!IsSpeculativeResourcePrefetchingEnabled(profile, &config)) |
return NULL; |