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 ee072857dad2292a79c1a6b81241cc550df38af0..19c4ef6965b3eb3b16c4edd4c065f9405412502b 100644 |
--- a/chrome/browser/omnibox/omnibox_field_trial.h |
+++ b/chrome/browser/omnibox/omnibox_field_trial.h |
@@ -137,6 +137,29 @@ class OmniboxFieldTrial { |
AutocompleteInput::PageClassification current_page_classification, |
DemotionMultipliers* demotions_by_type); |
+ // --------------------------------------------------------- |
+ // 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 kDemoteByTypeRule[]; |
+ static const char kReorderForLegalDefaultMatchRule[]; |
+ // Rule values. |
+ static const char kReorderForLegalDefaultMatchRuleEnabled[]; |
+ |
private: |
friend class OmniboxFieldTrialTest; |