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

Unified Diff: chrome/browser/autocomplete/history_url_provider.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/history_url_provider.cc
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 0f09a670998b12101b28cdd9536499f65a4128cc..0c395ef89ac1f5746352c488ef4cbbe0bf956bcd 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -17,7 +17,7 @@
#include "base/time/time.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/autocomplete/in_memory_url_index_types.h"
-#include "chrome/browser/autocomplete/scored_history_match_builder_impl.h"
+#include "chrome/browser/autocomplete/scored_history_match.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
@@ -715,10 +715,9 @@ ACMatchClassifications HistoryURLProvider::ClassifyDescription(
// If HistoryURL retrieves any matches (and hence we reach this code), we
// are guaranteed that the beginning of input_text must be a word break.
WordStarts offsets(1, 0u);
- description_matches =
- ScoredHistoryMatchBuilderImpl::FilterTermMatchesByWordStarts(
- description_matches, offsets, description_word_starts, 0,
- std::string::npos);
+ description_matches = ScoredHistoryMatch::FilterTermMatchesByWordStarts(
+ description_matches, offsets, description_word_starts, 0,
+ std::string::npos);
return SpansFromTermMatch(
description_matches, clean_description.length(), false);
}
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/autocomplete/in_memory_url_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698