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..0522486ffe4c5c5acb6490bb2d8f3fe439979bb6 100644 |
--- a/chrome/browser/omnibox/omnibox_field_trial.h |
+++ b/chrome/browser/omnibox/omnibox_field_trial.h |
@@ -118,6 +118,19 @@ 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); |
msw
2013/08/07 20:09:21
Why does the page classification matter?
Mark P
2013/08/07 22:13:05
We may only want to reorder in certain contexts.
msw
2013/08/10 17:32:18
I'd remove the arg for simplicity if it doesn't ha
Mark P
2013/08/11 03:22:48
I'm afraid removing the arg, though it would make
|
+ |
private: |
FRIEND_TEST_ALL_PREFIXES(OmniboxFieldTrialTest, GetValueForRuleInContext); |