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

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

Issue 1224083010: Enable Answers in Suggest always. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comment Created 5 years, 5 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 | « components/omnibox/browser/omnibox_field_trial.h ('k') | components/omnibox/browser/omnibox_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/omnibox_field_trial.cc
diff --git a/components/omnibox/browser/omnibox_field_trial.cc b/components/omnibox/browser/omnibox_field_trial.cc
index 1ef2efedda3478b81a5e4e9758c5ca7043b97bb0..73a51ff03b9d486321945e5e3340999e547fd059 100644
--- a/components/omnibox/browser/omnibox_field_trial.cc
+++ b/components/omnibox/browser/omnibox_field_trial.cc
@@ -301,18 +301,6 @@ bool OmniboxFieldTrial::HQPAllowMatchInSchemeValue() {
kHQPAllowMatchInSchemeRule) == "true";
}
-bool OmniboxFieldTrial::EnableAnswersInSuggest() {
- const base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
- if (cl->HasSwitch(switches::kDisableAnswersInSuggest))
- return false;
- if (cl->HasSwitch(switches::kEnableAnswersInSuggest))
- return true;
-
- return variations::GetVariationParamValue(
- kBundledExperimentFieldTrialName,
- kAnswersInSuggestRule) == "true";
-}
-
bool OmniboxFieldTrial::DisableResultsCaching() {
return variations::GetVariationParamValue(
kBundledExperimentFieldTrialName,
@@ -410,7 +398,6 @@ const char OmniboxFieldTrial::kHQPAllowMatchInSchemeRule[] =
"HQPAllowMatchInScheme";
const char OmniboxFieldTrial::kZeroSuggestRule[] = "ZeroSuggest";
const char OmniboxFieldTrial::kZeroSuggestVariantRule[] = "ZeroSuggestVariant";
-const char OmniboxFieldTrial::kAnswersInSuggestRule[] = "AnswersInSuggest";
const char OmniboxFieldTrial::kDisableResultsCachingRule[] =
"DisableResultsCaching";
const char
« no previous file with comments | « components/omnibox/browser/omnibox_field_trial.h ('k') | components/omnibox/browser/omnibox_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698