Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2182)

Unified Diff: chrome/browser/autocomplete/in_memory_url_index_factory.cc

Issue 976423002: Remove ScoreHistoryMatch::Builder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cpplint
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d05e4ab58d0508d25132b9ec9d3f7ae736392a5f..cb8e0419195a059c972e00ac4553c917c7dac9fa 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());
}
@@ -40,6 +42,7 @@ KeyedService* InMemoryURLIndexFactory::BuildServiceInstanceFor(
// Do not force creation of the HistoryService if saving history is disabled.
Profile* profile = Profile::FromBrowserContext(context);
InMemoryURLIndex* in_memory_url_index = new InMemoryURLIndex(
+ BookmarkModelFactory::GetForProfile(profile),
HistoryServiceFactory::GetForProfile(profile,
ServiceAccessType::IMPLICIT_ACCESS),
profile->GetPath(),
« no previous file with comments | « chrome/browser/autocomplete/in_memory_url_index.cc ('k') | chrome/browser/autocomplete/in_memory_url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698