| Index: chrome/browser/omnibox/omnibox_field_trial.h
|
| diff --git a/chrome/browser/omnibox/omnibox_field_trial.h b/chrome/browser/omnibox/omnibox_field_trial.h
|
| index 1ad3b16f9dd7159d05a04318deb4ee2677f2975d..926af1138ce384a83b538887c9f929c9d79cc109 100644
|
| --- a/chrome/browser/omnibox/omnibox_field_trial.h
|
| +++ b/chrome/browser/omnibox/omnibox_field_trial.h
|
| @@ -118,6 +118,28 @@ class OmniboxFieldTrial {
|
| static bool SearchHistoryDisable(
|
| AutocompleteInput::PageClassification current_page_classification);
|
|
|
| + // ---------------------------------------------------------
|
| + // For the ReorderForLegalDefaultMatch experiment that's part of the
|
| + // bundled omnibox field trial.
|
| +
|
| + // Returns true if the omnibox will reorder matches, in the provided
|
| + // |current_page_classification| context so that a match that's allowed to
|
| + // be the default match will appear first. This means AutocompleteProviders
|
| + // can score matches however they desire without regard to making sure the
|
| + // top match when all the matches from all providers are merged is a legal
|
| + // default match.
|
| + static bool ReorderForLegalDefaultMatch(
|
| + AutocompleteInput::PageClassification current_page_classification);
|
| +
|
| + // ---------------------------------------------------------
|
| + // Exposed publicly for the sake of unittests.
|
| + static const char kBundledExperimentFieldTrialName[];
|
| + // Rule names used by the bundled experiment.
|
| + static const char kSearchHistoryRule[];
|
| + static const char kReorderForLegalDefaultMatchRule[];
|
| + // Rule values.
|
| + static const char kReorderForLegalDefaultMatchRuleEnabled[];
|
| +
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(OmniboxFieldTrialTest, GetValueForRuleInContext);
|
|
|
|
|