OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 namespace autofill { | 23 namespace autofill { |
24 | 24 |
25 struct Suggestion; | 25 struct Suggestion; |
26 | 26 |
27 extern const base::Feature kAutofillCreditCardAssist; | 27 extern const base::Feature kAutofillCreditCardAssist; |
28 extern const base::Feature kAutofillScanCardholderName; | 28 extern const base::Feature kAutofillScanCardholderName; |
29 extern const base::Feature kAutofillCreditCardPopupLayout; | 29 extern const base::Feature kAutofillCreditCardPopupLayout; |
30 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; | 30 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; |
31 extern const base::Feature kAutofillUkmLogging; | |
32 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; | 31 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; |
33 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName; | 32 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName; |
34 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; | 33 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; |
35 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[]; | 34 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[]; |
36 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; | 35 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; |
37 | 36 |
38 // Returns true if autofill should be enabled. See also | 37 // Returns true if autofill should be enabled. See also |
39 // IsInAutofillSuggestionsDisabledExperiment below. | 38 // IsInAutofillSuggestionsDisabledExperiment below. |
40 bool IsAutofillEnabled(const PrefService* pref_service); | 39 bool IsAutofillEnabled(const PrefService* pref_service); |
41 | 40 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 // Modifies the suggestion value and label if the new credit card autofill popup | 96 // Modifies the suggestion value and label if the new credit card autofill popup |
98 // experiment is enabled to tweak the display of the value and label. | 97 // experiment is enabled to tweak the display of the value and label. |
99 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); | 98 void ModifyAutofillCreditCardSuggestion(struct Suggestion* suggestion); |
100 | 99 |
101 // Returns the margin for the icon, label and between icon and label. Returns 0 | 100 // Returns the margin for the icon, label and between icon and label. Returns 0 |
102 // if the margin isn't configured in an experiment to tweak autofill popup | 101 // if the margin isn't configured in an experiment to tweak autofill popup |
103 // layout. | 102 // layout. |
104 unsigned int GetPopupMargin(); | 103 unsigned int GetPopupMargin(); |
105 | 104 |
106 // Returns whether the feature to log UKMs is enabled. | |
107 bool IsUkmLoggingEnabled(); | |
108 | |
109 // Returns whether the experiment is enabled where Chrome Upstream requests CVC | 105 // Returns whether the experiment is enabled where Chrome Upstream requests CVC |
110 // in the offer to save bubble if it was not detected during the checkout flow. | 106 // in the offer to save bubble if it was not detected during the checkout flow. |
111 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); | 107 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); |
112 | 108 |
113 } // namespace autofill | 109 } // namespace autofill |
114 | 110 |
115 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 111 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
OLD | NEW |