| 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 0f339f42483d185e8f65e5e046f3d47371b28938..b0605550afb1b684a1b4da7b12c65822cd3837bd 100644
|
| --- a/chrome/browser/autocomplete/history_url_provider.cc
|
| +++ b/chrome/browser/autocomplete/history_url_provider.cc
|
| @@ -27,7 +27,6 @@
|
| using base::Time;
|
| using base::TimeDelta;
|
| using base::TimeTicks;
|
| -// TODO(mrossetti): Move these to a more appropriate place.
|
| using history::Prefix;
|
| using history::Prefixes;
|
| using history::HistoryMatch;
|
| @@ -114,6 +113,13 @@ HistoryURLProviderParams::HistoryURLProviderParams(
|
| languages(languages) {
|
| }
|
|
|
| +HistoryURLProvider::HistoryURLProvider(ACProviderListener* listener,
|
| + Profile* profile)
|
| + : AutocompleteProvider(listener, profile, "HistoryURL"),
|
| + prefixes_(GetPrefixes()),
|
| + params_(NULL) {
|
| +}
|
| +
|
| void HistoryURLProvider::Start(const AutocompleteInput& input,
|
| bool minimal_changes) {
|
| // NOTE: We could try hard to do less work in the |minimal_changes| case
|
| @@ -784,10 +790,8 @@ void HistoryURLProvider::CullPoorMatches(HistoryMatches* matches) const {
|
| Time recent_threshold = history::AutocompleteAgeThreshold();
|
| for (HistoryMatches::iterator i(matches->begin()); i != matches->end();) {
|
| const history::URLRow& url_info(i->url_info);
|
| - if ((url_info.typed_count() <=
|
| - history::kLowQualityMatchTypedLimit) &&
|
| - (url_info.visit_count() <=
|
| - history::kLowQualityMatchVisitLimit) &&
|
| + if ((url_info.typed_count() <= history::kLowQualityMatchTypedLimit) &&
|
| + (url_info.visit_count() <= history::kLowQualityMatchVisitLimit) &&
|
| (url_info.last_visit() < recent_threshold)) {
|
| i = matches->erase(i);
|
| } else {
|
|
|