Index: chrome/browser/history/in_memory_url_index.cc |
diff --git a/chrome/browser/history/in_memory_url_index.cc b/chrome/browser/history/in_memory_url_index.cc |
index 21797d7f280dbef37fa514ab0b59ab2bec381e5c..9460e285f1cf3d28025909aafc5283eabe829b13 100644 |
--- a/chrome/browser/history/in_memory_url_index.cc |
+++ b/chrome/browser/history/in_memory_url_index.cc |
@@ -90,8 +90,10 @@ InMemoryURLIndex::RebuildPrivateDataFromHistoryDBTask:: |
InMemoryURLIndex::InMemoryURLIndex(Profile* profile, |
const base::FilePath& history_dir, |
- const std::string& languages) |
+ const std::string& languages, |
+ HistoryClient* history_client) |
: profile_(profile), |
+ history_client_(history_client), |
history_dir_(history_dir), |
languages_(languages), |
private_data_(new URLIndexPrivateData), |
@@ -114,6 +116,7 @@ InMemoryURLIndex::InMemoryURLIndex(Profile* profile, |
// Called only by unit tests. |
InMemoryURLIndex::InMemoryURLIndex() |
: profile_(NULL), |
+ history_client_(NULL), |
private_data_(new URLIndexPrivateData), |
restore_cache_observer_(NULL), |
save_cache_observer_(NULL), |
@@ -165,7 +168,7 @@ ScoredHistoryMatches InMemoryURLIndex::HistoryItemsForTerms( |
term_string, |
cursor_position, |
languages_, |
- BookmarkModelFactory::GetForProfile(profile_)); |
+ history_client_); |
} |
// Updating -------------------------------------------------------------------- |