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

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

Issue 896983003: Componentize ScoredHistoryMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use base::saturated_cast<> to convert from float to int 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
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..c13927ca2fc35dc52893e1d2378437b1c68374cf 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,10 @@ 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 ScoredHistoryMatch::Builder& builder) {
+ return private_data_->HistoryItemsForTerms(term_string, cursor_position,
+ max_matches, languages_, builder);
}
// Updating --------------------------------------------------------------------
« no previous file with comments | « chrome/browser/history/in_memory_url_index.h ('k') | chrome/browser/history/in_memory_url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698