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

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

Issue 23621037: Send URLs on non-zero prefix suggest requests also. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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 e2c7144101483c2a6f0528524ec7d2854d086458..177afe3205c0803ae6ba0af0cd0487822da4df49 100644
--- a/chrome/browser/omnibox/omnibox_field_trial.cc
+++ b/chrome/browser/omnibox/omnibox_field_trial.cc
@@ -27,6 +27,7 @@ const char kStopTimerFieldTrialName[] = "OmniboxStopTimer";
const char kEnableZeroSuggestGroupPrefix[] = "EnableZeroSuggest";
const char kEnableZeroSuggestMostVisitedGroupPrefix[] =
"EnableZeroSuggestMostVisited";
+const char kEnableZeroSuggestSearchGroupPrefix[] = "EnableZeroSuggestSearch";
// The autocomplete dynamic field trial name prefix. Each field trial is
// configured dynamically and is retrieved automatically by Chrome during
@@ -209,6 +210,10 @@ bool OmniboxFieldTrial::InZeroSuggestMostVisitedFieldTrial() {
kEnableZeroSuggestMostVisitedGroupPrefix);
}
+bool OmniboxFieldTrial::InZeroSuggestSearchFieldTrial() {
+ return HasDynamicFieldTrialGroupPrefix(kEnableZeroSuggestSearchGroupPrefix);
+}
+
bool OmniboxFieldTrial::ShortcutsScoringMaxRelevance(
AutocompleteInput::PageClassification current_page_classification,
int* max_relevance) {

Powered by Google App Engine
This is Rietveld 408576698