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

Unified Diff: chrome/browser/autocomplete/network_action_predictor.h

Issue 9298032: Field trial to investigate higher weightings for hits when calculating Omnibox prerender confidence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stringprintf Created 8 years, 11 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/autocomplete/network_action_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/network_action_predictor.h
diff --git a/chrome/browser/autocomplete/network_action_predictor.h b/chrome/browser/autocomplete/network_action_predictor.h
index 0f3068a336c828e5d9593985ba6a84022d922a41..a8351e41adbc75359db727789fb61919dba779db 100644
--- a/chrome/browser/autocomplete/network_action_predictor.h
+++ b/chrome/browser/autocomplete/network_action_predictor.h
@@ -51,6 +51,9 @@ class NetworkActionPredictor
explicit NetworkActionPredictor(Profile* profile);
virtual ~NetworkActionPredictor();
+ static void set_hit_weight(double weight) { hit_weight_ = weight; }
+ static double get_hit_weight() { return hit_weight_; }
+
// Registers an AutocompleteResult for a given |user_text|. This will be used
// when the user navigates from the Omnibox to determine early opportunities
// to predict their actions.
@@ -115,6 +118,11 @@ class NetworkActionPredictor
static const int kMaximumDaysToKeepEntry;
+ // Multiplying factor applied to the |number_of_hits| for a database entry
+ // when calculating the confidence. It is currently set by a field trial so is
+ // static. Once the field trial ends, this will be a constant value.
+ static double hit_weight_;
+
// ProfileKeyedService
virtual void Shutdown() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/autocomplete/network_action_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698