| 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 87a406afa3e0275cc2b2a7a707aff295bd2e59c2..02b944cac113d400504d52e1bf770165e2d661df 100644
|
| --- a/chrome/browser/history/history_service_factory.cc
|
| +++ b/chrome/browser/history/history_service_factory.cc
|
| @@ -75,10 +75,11 @@ HistoryServiceFactory::~HistoryServiceFactory() {
|
|
|
| KeyedService* HistoryServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| - Profile* profile = static_cast<Profile*>(context);
|
| + Profile* profile = Profile::FromBrowserContext(context);
|
| scoped_ptr<HistoryService> history_service(new HistoryService(
|
| ChromeHistoryClientFactory::GetForProfile(profile), profile));
|
| if (!history_service->Init(
|
| + profile->GetPrefs(),
|
| history::HistoryDatabaseParamsForPath(profile->GetPath()))) {
|
| return nullptr;
|
| }
|
|
|