Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1144)

Unified Diff: chrome/browser/history/scored_history_match.h

Issue 300433003: Code cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/scored_history_match.h
diff --git a/chrome/browser/history/scored_history_match.h b/chrome/browser/history/scored_history_match.h
index 06fb76c40711baae45d3738c0396a3c568f27418..06f8bf1f40560931c12f39e6f4074ea31af7d876 100644
--- a/chrome/browser/history/scored_history_match.h
+++ b/chrome/browser/history/scored_history_match.h
@@ -25,7 +25,7 @@ class ScoredHistoryMatchTest;
// history item's URL and/or page title matches have occurred.
class ScoredHistoryMatch : public history::HistoryMatch {
public:
- // The maximum number of recent visits to examine in GetFrecency().
+ // The maximum number of recent visits to examine in GetFrequency().
// Public so url_index_private_data.cc knows how many visits it is
// expected to deliver (at minimum) to this class.
static const size_t kMaxVisitsToScore;
@@ -123,15 +123,15 @@ class ScoredHistoryMatch : public history::HistoryMatch {
// how often those visits are typed navigations (i.e., explicitly
// invoked by the user). |now| is passed in to avoid unnecessarily
// recomputing it frequently.
- static float GetFrecency(const base::Time& now,
- const bool bookmarked,
- const VisitInfoVector& visits);
+ static float GetFrequency(const base::Time& now,
+ const bool bookmarked,
+ const VisitInfoVector& visits);
// Combines the two component scores into a final score that's
// an appropriate value to use as a relevancy score.
static float GetFinalRelevancyScore(
float topicality_score,
- float frecency_score);
+ float frequency_score);
// Sets |also_do_hup_like_scoring_|,
// |max_assigned_score_for_non_inlineable_matches_|, |bookmark_value_|,
« no previous file with comments | « no previous file | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698