| 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 13f137f60611fe466847634efc7373a1b892cebf..f384345c09c9acd5b44f5eee7b5e579c81b05d42 100644
|
| --- a/chrome/browser/history/history_service_factory.cc
|
| +++ b/chrome/browser/history/history_service_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| +#include "chrome/browser/history/history_client_factory.h"
|
| #include "chrome/browser/history/history_service.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -59,6 +60,7 @@ HistoryServiceFactory::HistoryServiceFactory()
|
| : BrowserContextKeyedServiceFactory(
|
| "HistoryService", BrowserContextDependencyManager::GetInstance()) {
|
| DependsOn(BookmarkModelFactory::GetInstance());
|
| + DependsOn(HistoryClientFactory::GetInstance());
|
| }
|
|
|
| HistoryServiceFactory::~HistoryServiceFactory() {
|
| @@ -67,7 +69,8 @@ HistoryServiceFactory::~HistoryServiceFactory() {
|
| KeyedService* HistoryServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = static_cast<Profile*>(context);
|
| - HistoryService* history_service = new HistoryService(profile);
|
| + HistoryService* history_service =
|
| + new HistoryService(HistoryClientFactory::GetForProfile(profile), profile);
|
| if (!history_service->Init(profile->GetPath(),
|
| BookmarkModelFactory::GetForProfile(profile))) {
|
| return NULL;
|
|
|