Omnibox: Call Stop() on all Providers After Certain Amount of Time
This is to prevent belated omnibox suggestions from disrupting
the user's experience.
This changelist enables this behavior but controls it by a field
trial. The field trial currently is not created; no users are in.
I will use the server-side variations server to turn it on and control
the size of the experiment population.
Tested by increasing the timer within search provider and then
using --force-fieldtrials to switch myself in and out of the
experiment group and verifying that search provider suggestions
were or were not displayed depending on how late they appeared.
BUG=165252
Review URL: https://chromiumcodereview.appspot.com/14366009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195756 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/omnibox/omnibox_field_trial.h b/chrome/browser/omnibox/omnibox_field_trial.h
index 5783476..3c4df66 100644
--- a/chrome/browser/omnibox/omnibox_field_trial.h
+++ b/chrome/browser/omnibox/omnibox_field_trial.h
@@ -108,6 +108,18 @@
// is larger.
static bool InHQPReplaceHUPScoringFieldTrialExperimentGroup();
+ // ---------------------------------------------------------
+ // For the AutocompleteController "stop timer" field trial.
+
+ // Returns whether the user should get the experimental setup or the
+ // default setup for this field trial. The experiment group uses
+ // a timer in AutocompleteController to tell the providers to stop
+ // looking for matches after too much time has passed. In other words,
+ // it tries to tell the providers to stop updating the list of suggested
+ // matches if updating the matches would probably be disruptive because
+ // they're arriving so late.
+ static bool InStopTimerFieldTrialExperimentGroup();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
};