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

Unified Diff: chrome/browser/history/in_memory_url_index.cc

Issue 903493002: Componentize ScoredHistoryMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « chrome/browser/history/in_memory_url_index.h ('k') | chrome/browser/history/scored_history_match.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32fb87c7f92785830f34bd19b6b750c3c2844f26..7581c8a9b9e8a46ee071555dfc707d9275fad960 100644
--- a/chrome/browser/history/in_memory_url_index.cc
+++ b/chrome/browser/history/in_memory_url_index.cc
@@ -81,10 +81,8 @@ InMemoryURLIndex::RebuildPrivateDataFromHistoryDBTask::
InMemoryURLIndex::InMemoryURLIndex(HistoryService* history_service,
const base::FilePath& history_dir,
- const std::string& languages,
- HistoryClient* history_client)
+ const std::string& languages)
: history_service_(history_service),
- history_client_(history_client),
history_dir_(history_dir),
languages_(languages),
private_data_(new URLIndexPrivateData),
@@ -142,13 +140,11 @@ bool InMemoryURLIndex::GetCacheFilePath(base::FilePath* file_path) {
ScoredHistoryMatches InMemoryURLIndex::HistoryItemsForTerms(
const base::string16& term_string,
size_t cursor_position,
- size_t max_matches) {
- return private_data_->HistoryItemsForTerms(
- term_string,
- cursor_position,
- max_matches,
- languages_,
- history_client_);
+ size_t max_matches,
+ const ScoredHistoryMatchClient* scored_history_match_client) {
+ return private_data_->HistoryItemsForTerms(term_string, cursor_position,
+ max_matches, languages_,
+ scored_history_match_client);
}
// Updating --------------------------------------------------------------------
« no previous file with comments | « chrome/browser/history/in_memory_url_index.h ('k') | chrome/browser/history/scored_history_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698