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

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: Fix unit tests 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 46f6bc1c8f187ebfb574698afd3022e867aecc4f..06f7e040058f207d76f94b2cfeed69330f570d2f 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"
@@ -714,10 +714,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);
}

Powered by Google App Engine
This is Rietveld 408576698