summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_url_provider.cc
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 03:48:22 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 03:48:22 +0000
commitbbf7e53f9a96ebd3a4f2835ea5ee561f03ef534e (patch)
tree4c69eff76893fcdfee2881b2e7f796f95cb2d6ab /chrome/browser/autocomplete/history_url_provider.cc
parent49f3c3b87869b5ef8393aee7fc9a1f2cfd78ce09 (diff)
downloadchromium_src-bbf7e53f9a96ebd3a4f2835ea5ee561f03ef534e.zip
chromium_src-bbf7e53f9a96ebd3a4f2835ea5ee561f03ef534e.tar.gz
chromium_src-bbf7e53f9a96ebd3a4f2835ea5ee561f03ef534e.tar.bz2
History provider: style cleanup
BUG=none TEST=it compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56939 Review URL: http://codereview.chromium.org/3177020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_url_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_url_provider.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 0f339f4..b060555 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 {