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

Unified Diff: components/omnibox/browser/omnibox_field_trial.h

Issue 2864103003: Limit the number of history urls indexed for omnibox suggestions. (Closed)
Patch Set: address comments. Created 3 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
Index: components/omnibox/browser/omnibox_field_trial.h
diff --git a/components/omnibox/browser/omnibox_field_trial.h b/components/omnibox/browser/omnibox_field_trial.h
index 82185aaf3dec36da126ca7e3e804061fabc24a43..59e35e1483cb89408da1d8870486a5bbacd8bc92 100644
--- a/components/omnibox/browser/omnibox_field_trial.h
+++ b/components/omnibox/browser/omnibox_field_trial.h
@@ -302,6 +302,15 @@ class OmniboxFieldTrial {
// value of 0.8 if no threshold is specified in the field trial.
static float HQPExperimentalTopicalityThreshold();
+ // ---------------------------------------------------------
+ // For experitment to limit HQP url indexing that's part of the bundled
Mark P 2017/05/10 17:23:09 nit: typo (experitment)
ssid 2017/05/10 19:47:58 Done.
+ // omnibox field trial.
+
+ // Returns the maximum number of history urls to index for HQP at the startup.
+ // Note: this limit is only applied at startup and more urls can be indexed
+ // during the session. Returns -1 if limit is not set by trials.
+ static int MaxNumHQPUrlsIndexedAtStartup();
+
// ---------------------------------------------------------
// For the HQPFixFrequencyScoring experiment that's part of the
// bundled omnibox field trial.
@@ -489,6 +498,10 @@ class OmniboxFieldTrial {
static const char kPhysicalWebZeroSuggestBaseRelevanceParam[];
static const char kPhysicalWebAfterTypingBaseRelevanceParam[];
+ // Parameter name used by the experiment that limits the number of history
+ // urls indexed for suggestions.
+ static const char kMaxNumHQPUrlsIndexedAtStartupParam[];
+
// Parameter names used by the experiment redirecting Zero Suggestion requests
// to a service provided by the Chrome team.
static const char kZeroSuggestRedirectToChromeServerAddressParam[];

Powered by Google App Engine
This is Rietveld 408576698