Index: chrome/browser/history/scored_history_match.cc |
diff --git a/chrome/browser/history/scored_history_match.cc b/chrome/browser/history/scored_history_match.cc |
index 8f8c3737f1dcc70e974c7d71222fd1705eb30fec..2f83ab8c6450f09370af8ff6456173e875c31c20 100644 |
--- a/chrome/browser/history/scored_history_match.cc |
+++ b/chrome/browser/history/scored_history_match.cc |
@@ -444,14 +444,11 @@ void ScoredHistoryMatch::FillInDaysAgoToRecencyScoreArray() { |
// Linearly extrapolate between 30 and 90 days so 90 days has a score |
// of 20. |
unnormalized_recency_score = 20 + (90 - days_ago) * (50 - 20) / (90 - 30); |
- } else if (days_ago <= 365) { |
+ } else { |
// Linearly extrapolate between 90 and 365 days so 365 days has a score |
// of 10. |
unnormalized_recency_score = |
10 + (365 - days_ago) * (20 - 10) / (365 - 90); |
- } else { |
- // greater than a year. |
- unnormalized_recency_score = 10; |
kmadhusu
2012/06/08 19:51:14
Since days_ago is always between 0 and 365, execut
James Hawkins
2012/06/12 20:38:57
Hmm I looked at this Coverity defect, and had rese
|
} |
days_ago_to_recency_score[days_ago] = unnormalized_recency_score / 100.0; |
if (days_ago > 0) { |