[AiS] Add disable flag to about_flags.

BUG=386638

Review URL: https://codereview.chromium.org/342713007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278746 0039d316-1c4b-4281-b951-d872f2087c98
parent ae8a485d
......@@ -6513,7 +6513,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
</message>
<if expr="is_android">
<message name="IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME" desc="Name of the about:flags Answers in Suggest experiment.">
Enable Answers in Suggest
Answers in Suggest
</message>
<message name="IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION" desc="Description of the about:flags Answers in Suggest experiment.">
If enabled, responses to certain types of queries will appear directly in the Omnibox suggestion list.
......
......@@ -408,6 +408,16 @@ const Experiment::Choice kExtensionContentVerificationChoices[] = {
extensions::switches::kExtensionContentVerificationEnforceStrict },
};
#if defined(OS_ANDROID)
const Experiment::Choice kAnswersInSuggestChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
switches::kEnableAnswersInSuggest, ""},
{ IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
switches::kDisableAnswersInSuggest, ""}
};
#endif
// Using independent flags (instead of flag=value flags) to be able to
// associate the version with a FieldTrial. FieldTrials don't currently support
// flag=value flags.
......@@ -1916,11 +1926,11 @@ const Experiment kExperiments[] = {
},
#if defined(OS_ANDROID)
{
"enable-answers-in-suggest",
"answers-in-suggest",
IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME,
IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION,
kOsAndroid,
SINGLE_VALUE_TYPE(switches::kEnableAnswersInSuggest)
MULTI_VALUE_TYPE(kAnswersInSuggestChoices)
},
#endif
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment