diff options
author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 18:08:30 +0000 |
---|---|---|
committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-06 18:08:30 +0000 |
commit | 26d0ad898ada48edf4a4303c04a85873a448b24b (patch) | |
tree | a90daa4e68f5366fd18c091929066673cdae8a67 /chrome/browser/autocomplete/history_quick_provider.cc | |
parent | 4f627204c45055cc156cd2190f31b1fa9671217b (diff) | |
download | chromium_src-26d0ad898ada48edf4a4303c04a85873a448b24b.zip chromium_src-26d0ad898ada48edf4a4303c04a85873a448b24b.tar.gz chromium_src-26d0ad898ada48edf4a4303c04a85873a448b24b.tar.bz2 |
Properly set max_match_score to -1 rather than 1425 and adjust some indentation.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6948001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_quick_provider.cc')
-rw-r--r-- | chrome/browser/autocomplete/history_quick_provider.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc index 393b2b7..c4b4f4e 100644 --- a/chrome/browser/autocomplete/history_quick_provider.cc +++ b/chrome/browser/autocomplete/history_quick_provider.cc @@ -104,7 +104,7 @@ void HistoryQuickProvider::DoAutocomplete() { // |max_match_score|. Upon use of |max_match_score| it is decremented. // All subsequent matches must be clamped to retain match results ordering. int max_match_score = autocomplete_input_.prevent_inline_autocomplete() ? - kMaxNonInliningScore : 1425; + kMaxNonInliningScore : -1; for (ScoredHistoryMatches::const_iterator match_iter = matches.begin(); match_iter != matches.end(); ++match_iter) { const ScoredHistoryMatch& history_match(*match_iter); @@ -187,8 +187,8 @@ int HistoryQuickProvider::CalculateRelevance( // match in the URL. int score = (history_match.can_inline) ? history_match.raw_score : std::min(kMaxNonInliningScore, history_match.raw_score); - *max_match_score = ((*max_match_score < 0) ? score : - std::min(score, *max_match_score)) - 1; + *max_match_score = ((*max_match_score < 0) ? + score : std::min(score, *max_match_score)) - 1; return *max_match_score + 1; } |