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 cde62593f1cbe30ba2ab574d64e156b301e33ddf..1622f7d426d472104582f6cd20bdb7c90f79764d 100644 |
--- a/chrome/browser/omnibox/omnibox_field_trial.h |
+++ b/chrome/browser/omnibox/omnibox_field_trial.h |
@@ -139,6 +139,30 @@ 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 kShortcutsScoringMaxRelevanceRule[]; |
+ static const char kSearchHistoryRule[]; |
+ static const char kDemoteByTypeRule[]; |
+ static const char kReorderForLegalDefaultMatchRule[]; |
+ // Rule values. |
+ static const char kReorderForLegalDefaultMatchRuleEnabled[]; |
+ |
private: |
friend class OmniboxFieldTrialTest; |