1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/autofill_assistant/browser/features.h"
6 
7 #include "base/feature_list.h"
8 
9 namespace autofill_assistant {
10 namespace features {
11 
12 const base::Feature kAutofillAssistant{"AutofillAssistant",
13                                        base::FEATURE_ENABLED_BY_DEFAULT};
14 
15 // Controls whether to enable Assistant Autofill in a normal Chrome tab.
16 const base::Feature kAutofillAssistantChromeEntry{
17     "AutofillAssistantChromeEntry", base::FEATURE_ENABLED_BY_DEFAULT};
18 
19 // Controls whether to enable dialog onboarding for Autofill Assistant
20 const base::Feature kAutofillAssistantDialogOnboarding{
21     "AutofillAssistantDialogOnboarding", base::FEATURE_ENABLED_BY_DEFAULT};
22 
23 const base::Feature kAutofillAssistantDirectActions{
24     "AutofillAssistantDirectActions", base::FEATURE_ENABLED_BY_DEFAULT};
25 
26 // Controls whether to disable onboarding flow for Autofill Assistant
27 const base::Feature kAutofillAssistantDisableOnboardingFlow{
28     "AutofillAssistantDisableOnboardingFlow",
29     base::FEATURE_DISABLED_BY_DEFAULT};
30 
31 // Controls whether to show the "Send feedback" chip while in an error state.
32 const base::Feature kAutofillAssistantFeedbackChip{
33     "AutofillAssistantFeedbackChip", base::FEATURE_ENABLED_BY_DEFAULT};
34 
35 const base::Feature kAutofillAssistantProactiveHelp{
36     "AutofillAssistantProactiveHelp", base::FEATURE_DISABLED_BY_DEFAULT};
37 
38 // Use Chrome's TabHelper system to deal with the life cycle of WebContent's
39 // depending Autofill Assistant objects.
40 const base::Feature kAutofillAssistantWithTabHelper{
41     "AutofillAssistantWithTabHelper", base::FEATURE_DISABLED_BY_DEFAULT};
42 
43 // By default, proactive help is only offered if MSBB is turned on. This feature
44 // flag allows disabling the link. Proactive help can still be offered to users
45 // so long as no communication to a remote backend is required. Specifically,
46 // base64-injected trigger scripts can be shown even in the absence of MSBB.
47 const base::Feature kAutofillAssistantDisableProactiveHelpTiedToMSBB{
48     "AutofillAssistantDisableProactiveHelpTiedToMSBB",
49     base::FEATURE_DISABLED_BY_DEFAULT};
50 
51 // Whether autofill assistant should load the DFM for trigger scripts when
52 // necessary. Without this feature, trigger scripts will exit if the DFM is not
53 // available.
54 const base::Feature kAutofillAssistantLoadDFMForTriggerScripts{
55     "AutofillAssistantLoadDFMForTriggerScripts",
56     base::FEATURE_DISABLED_BY_DEFAULT};
57 
58 }  // namespace features
59 }  // namespace autofill_assistant
60