Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: chrome/browser/omnibox/omnibox_field_trial.cc

Issue 14366009: Omnibox: Call Stop() on all Providers After Certain Amount of Time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove sentence Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/omnibox/omnibox_field_trial.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/omnibox/omnibox_field_trial.cc
diff --git a/chrome/browser/omnibox/omnibox_field_trial.cc b/chrome/browser/omnibox/omnibox_field_trial.cc
index 2751f137e874963b020256e0109d201a8d87d229..e9e31c3363fce889c6c59859ce9775826664c7f1 100644
--- a/chrome/browser/omnibox/omnibox_field_trial.cc
+++ b/chrome/browser/omnibox/omnibox_field_trial.cc
@@ -24,6 +24,7 @@ const char kHUPCreateShorterMatchFieldTrialName[] =
"OmniboxHUPCreateShorterMatch";
const char kHQPReplaceHUPScoringFieldTrialName[] =
"OmniboxHQPReplaceHUPProhibitTrumpingInlineableResult";
+const char kStopTimerFieldTrialName[] = "OmniboxStopTimer";
// The autocomplete dynamic field trial name prefix. Each field trial is
// configured dynamically and is retrieved automatically by Chrome during
@@ -73,6 +74,9 @@ const base::FieldTrial::Probability
const base::FieldTrial::Probability
kHQPReplaceHUPScoringFieldTrialExperimentFraction = 0;
+// Experiment group names.
+
+const char kStopTimerExperimentGroupName[] = "UseStopTimer";
// Field trial IDs.
// Though they are not literally "const", they are set only once, in
@@ -288,3 +292,8 @@ bool OmniboxFieldTrial::InHQPReplaceHUPScoringFieldTrialExperimentGroup() {
kHQPReplaceHUPScoringFieldTrialName);
return group == hqp_replace_hup_scoring_experiment_group;
}
+
+bool OmniboxFieldTrial::InStopTimerFieldTrialExperimentGroup() {
+ return (base::FieldTrialList::FindFullName(kStopTimerFieldTrialName) ==
+ kStopTimerExperimentGroupName);
+}
« no previous file with comments | « chrome/browser/omnibox/omnibox_field_trial.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698