Index: chrome/browser/history/history_service_factory.cc |
diff --git a/chrome/browser/history/history_service_factory.cc b/chrome/browser/history/history_service_factory.cc |
index 813c0a083a73fa416a6cfcea7ed7be5846749733..fa0c2d62bc14ba52f33f16603ef2ef2cf3bd6c29 100644 |
--- a/chrome/browser/history/history_service_factory.cc |
+++ b/chrome/browser/history/history_service_factory.cc |
@@ -64,7 +64,9 @@ HistoryServiceFactory::~HistoryServiceFactory() { |
} |
ProfileKeyedService* |
-HistoryServiceFactory::BuildServiceInstanceFor(Profile* profile) const { |
+HistoryServiceFactory::BuildServiceInstanceFor( |
+ content::BrowserContext* context) const { |
+ Profile* profile = static_cast<Profile*>(context); |
HistoryService* history_service = new HistoryService(profile); |
if (!history_service->Init(profile->GetPath(), |
BookmarkModelFactory::GetForProfile(profile))) { |