| 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 46b8f490f14c55bffae193382be1f9add07869c4..b6da9479fa5369355c518cec3b01239371b78e3b 100644
|
| --- a/components/omnibox/browser/omnibox_field_trial.h
|
| +++ b/components/omnibox/browser/omnibox_field_trial.h
|
| @@ -374,6 +374,26 @@ class OmniboxFieldTrial {
|
| metrics::OmniboxInputType::Type input_type);
|
|
|
| // ---------------------------------------------------------
|
| + // For PhysicalWebProvider related experiments.
|
| +
|
| + // Returns whether the user is in a Physical Web field trial where the
|
| + // PhysicalWebProvider should be used to get suggestions when the user clicks
|
| + // on the omnibox but has not typed anything yet.
|
| + static bool InPhysicalWebZeroSuggestFieldTrial();
|
| +
|
| + // Returns whether the user is in a Physical Web field trial and URL-based
|
| + // suggestions can continue to appear after the user has started typing.
|
| + static bool InPhysicalWebAfterTypingFieldTrial();
|
| +
|
| + // Returns the base relevance score for Physical Web omnibox suggestions when
|
| + // the user has clicked on the omnibox but has not typed anything yet.
|
| + static int GetPhysicalWebZeroSuggestBaseRelevance();
|
| +
|
| + // Returns the base relevance score for Physical Web omnibox suggestions when
|
| + // the user has started typing in the omnibox.
|
| + static int GetPhysicalWebAfterTypingBaseRelevance();
|
| +
|
| + // ---------------------------------------------------------
|
| // Exposed publicly for the sake of unittests.
|
| static const char kBundledExperimentFieldTrialName[];
|
| // Rule names used by the bundled experiment.
|
| @@ -405,6 +425,8 @@ class OmniboxFieldTrial {
|
| static const char kKeywordScoreForSufficientlyCompleteMatchRule[];
|
| static const char kHQPAllowDupMatchesForScoringRule[];
|
| static const char kEmphasizeTitlesRule[];
|
| + static const char kPhysicalWebZeroSuggestRule[];
|
| + static const char kPhysicalWebAfterTypingRule[];
|
|
|
| // Parameter names used by the HUP new scoring experiments.
|
| static const char kHUPNewScoringEnabledParam[];
|
| @@ -421,6 +443,10 @@ class OmniboxFieldTrial {
|
| static const char kHQPExperimentalScoringBucketsParam[];
|
| static const char kHQPExperimentalScoringTopicalityThresholdParam[];
|
|
|
| + // Parameter names used by the Physical Web experimental scoring experiments.
|
| + static const char kPhysicalWebZeroSuggestBaseRelevanceParam[];
|
| + static const char kPhysicalWebAfterTypingBaseRelevanceParam[];
|
| +
|
| // The amount of time to wait before sending a new suggest request after the
|
| // previous one unless overridden by a field trial parameter.
|
| // Non-const because some unittests modify this value.
|
|
|