| Index: chrome/browser/autocomplete/in_memory_url_index_factory.cc
|
| diff --git a/chrome/browser/autocomplete/in_memory_url_index_factory.cc b/chrome/browser/autocomplete/in_memory_url_index_factory.cc
|
| index 656a39a362d69427c13b4ac2daaa55e786f18c90..aed9d6c6d7b807667912d99e802e28fd65de568a 100644
|
| --- a/chrome/browser/autocomplete/in_memory_url_index_factory.cc
|
| +++ b/chrome/browser/autocomplete/in_memory_url_index_factory.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/memory/singleton.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/autocomplete/in_memory_url_index.h"
|
| +#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| #include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -29,6 +30,7 @@ InMemoryURLIndexFactory::InMemoryURLIndexFactory()
|
| : BrowserContextKeyedServiceFactory(
|
| "InMemoryURLIndex",
|
| BrowserContextDependencyManager::GetInstance()) {
|
| + DependsOn(BookmarkModelFactory::GetInstance());
|
| DependsOn(HistoryServiceFactory::GetInstance());
|
| }
|
|
|
| @@ -39,6 +41,7 @@ KeyedService* InMemoryURLIndexFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| Profile* profile = Profile::FromBrowserContext(context);
|
| InMemoryURLIndex* in_memory_url_index = new InMemoryURLIndex(
|
| + BookmarkModelFactory::GetForProfile(profile),
|
| HistoryServiceFactory::GetForProfile(profile,
|
| ServiceAccessType::IMPLICIT_ACCESS),
|
| profile->GetPath(),
|
|
|