Index: chrome/browser/autocomplete/history_url_provider.cc |
=================================================================== |
--- chrome/browser/autocomplete/history_url_provider.cc (revision 56942) |
+++ chrome/browser/autocomplete/history_url_provider.cc (working copy) |
@@ -27,6 +27,7 @@ |
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; |
@@ -113,24 +114,6 @@ |
languages(languages) { |
} |
-HistoryURLProvider::HistoryURLProvider(ACProviderListener* listener, |
- Profile* profile) |
- : AutocompleteProvider(listener, profile, "HistoryURL"), |
- prefixes_(GetPrefixes()), |
- params_(NULL) { |
-} |
- |
-#ifdef UNIT_TEST |
-HistoryURLProvider::HistoryURLProvider(ACProviderListener* listener, |
- Profile* profile, |
- const std::wstring& languages) |
- : AutocompleteProvider(listener, profile, "History"), |
- prefixes_(GetPrefixes()), |
- params_(NULL), |
- languages_(languages) { |
-} |
-#endif |
- |
void HistoryURLProvider::Start(const AutocompleteInput& input, |
bool minimal_changes) { |
// NOTE: We could try hard to do less work in the |minimal_changes| case |
@@ -801,8 +784,10 @@ |
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 { |