| 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 30f9f3ecef1f2ab8459f4b1105d78cc78e353f38..ae573881e9f6aa76fbba66440ad33f617f5f9c3e 100644
|
| --- a/chrome/browser/history/history_service_factory.cc
|
| +++ b/chrome/browser/history/history_service_factory.cc
|
| @@ -77,14 +77,13 @@ HistoryServiceFactory::~HistoryServiceFactory() {
|
|
|
| KeyedService* HistoryServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| - Profile* profile = Profile::FromBrowserContext(context);
|
| std::unique_ptr<history::HistoryService> history_service(
|
| new history::HistoryService(
|
| base::WrapUnique(new ChromeHistoryClient(
|
| - BookmarkModelFactory::GetForProfile(profile))),
|
| - base::WrapUnique(new history::ContentVisitDelegate(profile))));
|
| + BookmarkModelFactory::GetForBrowserContext(context))),
|
| + base::WrapUnique(new history::ContentVisitDelegate(context))));
|
| if (!history_service->Init(
|
| - history::HistoryDatabaseParamsForPath(profile->GetPath()))) {
|
| + history::HistoryDatabaseParamsForPath(context->GetPath()))) {
|
| return nullptr;
|
| }
|
| return history_service.release();
|
|
|