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

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

Issue 347963002: Omnibox: Add Field Trial to Create UWYT When Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 2edca38a266af9c744958db1b7085ebf44d01738..5c778f1ca016677c51e2e105edb9ecf17910eec8 100644
--- a/chrome/browser/omnibox/omnibox_field_trial.cc
+++ b/chrome/browser/omnibox/omnibox_field_trial.cc
@@ -445,6 +445,12 @@ bool OmniboxFieldTrial::EnableAnswersInSuggest() {
kAnswersInSuggestRule) == "true";
}
+bool OmniboxFieldTrial::AddUWYTMatchEvenIfPromotedURLs() {
+ return chrome_variations::GetVariationParamValue(
+ kBundledExperimentFieldTrialName,
+ kAddUWYTMatchEvenIfPromotedURLsRule) == "true";
+}
+
const char OmniboxFieldTrial::kBundledExperimentFieldTrialName[] =
"OmniboxBundledExperimentV1";
const char OmniboxFieldTrial::kShortcutsScoringMaxRelevanceRule[] =
@@ -461,6 +467,8 @@ const char OmniboxFieldTrial::kZeroSuggestVariantRule[] = "ZeroSuggestVariant";
const char OmniboxFieldTrial::kBookmarksIndexURLsRule[] = "BookmarksIndexURLs";
const char OmniboxFieldTrial::kDisableInliningRule[] = "DisableInlining";
const char OmniboxFieldTrial::kAnswersInSuggestRule[] = "AnswersInSuggest";
+const char OmniboxFieldTrial::kAddUWYTMatchEvenIfPromotedURLsRule[] =
+ "AddUWYTMatchEvenIfPromotedURLs";
const char OmniboxFieldTrial::kHUPNewScoringEnabledParam[] =
"HUPExperimentalScoringEnabled";
« chrome/browser/omnibox/omnibox_field_trial.h ('K') | « 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