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 11 matching lines...) Expand all Loading... |
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; | 31 extern const base::Feature kAutofillUkmLogging; |
| 32 extern const base::Feature kAutofillCreditCardBankNameDisplay; |
32 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; | 33 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; |
33 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[]; | 34 extern const char kAutofillCreditCardPopupSettingsSuggestionValueKey[]; |
34 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; | 35 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; |
35 | 36 |
36 // Returns true if autofill should be enabled. See also | 37 // Returns true if autofill should be enabled. See also |
37 // IsInAutofillSuggestionsDisabledExperiment below. | 38 // IsInAutofillSuggestionsDisabledExperiment below. |
38 bool IsAutofillEnabled(const PrefService* pref_service); | 39 bool IsAutofillEnabled(const PrefService* pref_service); |
39 | 40 |
40 // Returns true if autofill suggestions are disabled via experiment. The | 41 // Returns true if autofill suggestions are disabled via experiment. The |
41 // disabled experiment isn't the same as disabling autofill completely since we | 42 // disabled experiment isn't the same as disabling autofill completely since we |
(...skipping 20 matching lines...) Expand all Loading... |
62 // enabled. | 63 // enabled. |
63 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); | 64 bool IsAutofillCreditCardPopupLayoutExperimentEnabled(); |
64 | 65 |
65 // Returns whether Autofill credit card last used date display experiment is | 66 // Returns whether Autofill credit card last used date display experiment is |
66 // enabled. | 67 // enabled. |
67 bool IsAutofillCreditCardLastUsedDateDisplayExperimentEnabled(); | 68 bool IsAutofillCreditCardLastUsedDateDisplayExperimentEnabled(); |
68 | 69 |
69 // Returns whether Autofill credit card last used date shows expiration date. | 70 // Returns whether Autofill credit card last used date shows expiration date. |
70 bool ShowExpirationDateInAutofillCreditCardLastUsedDate(); | 71 bool ShowExpirationDateInAutofillCreditCardLastUsedDate(); |
71 | 72 |
| 73 // Returns whether Autofill credit card bank name display experiment is enabled. |
| 74 bool IsAutofillCreditCardBankNameDisplayExperimentEnabled(); |
| 75 |
72 // Returns the background color for credit card autofill popup, or | 76 // Returns the background color for credit card autofill popup, or |
73 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment | 77 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment |
74 // is not enabled. | 78 // is not enabled. |
75 SkColor GetCreditCardPopupBackgroundColor(); | 79 SkColor GetCreditCardPopupBackgroundColor(); |
76 | 80 |
77 // Returns the divider color for credit card autofill popup, or | 81 // Returns the divider color for credit card autofill popup, or |
78 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment | 82 // |SK_ColorTRANSPARENT| if the new credit card autofill popup layout experiment |
79 // is not enabled. | 83 // is not enabled. |
80 SkColor GetCreditCardPopupDividerColor(); | 84 SkColor GetCreditCardPopupDividerColor(); |
81 | 85 |
(...skipping 18 matching lines...) Expand all Loading... |
100 // if the margin isn't configured in an experiment to tweak autofill popup | 104 // if the margin isn't configured in an experiment to tweak autofill popup |
101 // layout. | 105 // layout. |
102 unsigned int GetPopupMargin(); | 106 unsigned int GetPopupMargin(); |
103 | 107 |
104 // Returns whether the feature to log UKMs is enabled. | 108 // Returns whether the feature to log UKMs is enabled. |
105 bool IsUkmLoggingEnabled(); | 109 bool IsUkmLoggingEnabled(); |
106 | 110 |
107 } // namespace autofill | 111 } // namespace autofill |
108 | 112 |
109 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 113 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
OLD | NEW |