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

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

Issue 10532149: Omnibox: Create HistoryQuickProvider new scoring field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialized -> initialized_ Created 8 years, 6 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
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 26440141c547eda8ce2afc3c137f543083bad53a..4ddd73b7bae9789aa0e7ae83f95869e5bfe03106 100644
--- a/chrome/browser/history/scored_history_match.h
+++ b/chrome/browser/history/scored_history_match.h
@@ -97,6 +97,10 @@ struct ScoredHistoryMatch : public history::HistoryMatch {
static float GetPopularityScore(int typed_count,
int visit_count);
+ // Sets use_new_scoring based on command line flags and/or
+ // field trial state.
+ static void InitializeNewScoringField();
+
// End of functions used only in "new" scoring --------------------------
// An interim score taking into consideration location and completeness
@@ -127,7 +131,7 @@ struct ScoredHistoryMatch : public history::HistoryMatch {
static float* raw_term_score_to_topicality_score;
// Allows us to determing setting for use_new_scoring_ only once.
- static bool initialized;
+ static bool initialized_;
// Whether to use new-score or old-scoring. Set in the constructor
// by examining command line flags.
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_field_trial.cc ('k') | chrome/browser/history/scored_history_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698