Chromium Code Reviews| 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 b6e354993d5d8c59383ce63ebb299987de581cb9..0e4edcfcd1d763d8e997a263eb9f04707d02b159 100644 |
| --- a/components/omnibox/browser/omnibox_field_trial.h |
| +++ b/components/omnibox/browser/omnibox_field_trial.h |
| @@ -320,6 +320,28 @@ class OmniboxFieldTrial { |
| static bool PreventUWYTDefaultForNonURLInputs(); |
| // --------------------------------------------------------- |
| + // For the aggressive keyword matching experiment that's part of the bundled |
| + // omnibox field trial. |
| + |
| + // Returns whether KeywordProvider should consider the registry portion |
| + // (e.g., co.uk) of keywords that look like hostnames as an important part of |
| + // the keyword name for matching purposes. Returns true if the experiment |
| + // isn't active. |
| + static bool KeywordRequiresRegistry(); |
| + |
| + // Returns whether KeywordProvider should require, for keywords that look like |
| + // hostnames, users to type a prefix of the hostname to match against them, |
|
Peter Kasting
2015/11/12 20:36:10
Nit: Slightly awkward; rearrange:
For keywords th
Mark P
2015/11/12 21:42:48
Done. I kindof wanted to write it like that origi
|
| + // rather than just the domain name portion. In other words, returns whether |
| + // the prefix before the domain name should be considered important for |
| + // matching purposes. Returns true if the experiment isn't active. |
| + static bool KeywordRequiresPrefixMatch(); |
| + |
| + // Returns the relevance score that KeywordProvider should assign to keywords |
| + // with sufficiently-complete matches, i.e., the user has typed all of the |
| + // important part of the keyword. Returns -1 if the experiment isn't active. |
| + static int KeywordScoreForSufficientlyCompleteMatch(); |
| + |
| + // --------------------------------------------------------- |
| // Exposed publicly for the sake of unittests. |
| static const char kBundledExperimentFieldTrialName[]; |
| // Rule names used by the bundled experiment. |
| @@ -341,6 +363,9 @@ class OmniboxFieldTrial { |
| static const char kHQPNumTitleWordsRule[]; |
| static const char kHQPAlsoDoHUPLikeScoringRule[]; |
| static const char kPreventUWYTDefaultForNonURLInputsRule[]; |
| + static const char kKeywordRequiresRegistryRule[]; |
| + static const char kKeywordRequiresPrefixMatchRule[]; |
| + static const char kKeywordScoreForSufficientlyCompleteMatchRule[]; |
| // Parameter names used by the HUP new scoring experiments. |
| static const char kHUPNewScoringEnabledParam[]; |