Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 struct Suggestion; | 27 struct Suggestion; |
| 28 | 28 |
| 29 extern const base::Feature kAutofillCreditCardAssist; | 29 extern const base::Feature kAutofillCreditCardAssist; |
| 30 extern const base::Feature kAutofillScanCardholderName; | 30 extern const base::Feature kAutofillScanCardholderName; |
| 31 extern const base::Feature kAutofillCreditCardBankNameDisplay; | 31 extern const base::Feature kAutofillCreditCardBankNameDisplay; |
| 32 extern const base::Feature kAutofillCreditCardPopupLayout; | 32 extern const base::Feature kAutofillCreditCardPopupLayout; |
| 33 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; | 33 extern const base::Feature kAutofillCreditCardLastUsedDateDisplay; |
| 34 extern const base::Feature kAutofillOfferLocalSaveIfServerCardManuallyEntered; | 34 extern const base::Feature kAutofillOfferLocalSaveIfServerCardManuallyEntered; |
| 35 extern const base::Feature kAutofillSuppressDisusedAddresses; | 35 extern const base::Feature kAutofillSuppressDisusedAddresses; |
| 36 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; | 36 extern const base::Feature kAutofillUpstreamRequestCvcIfMissing; |
| 37 extern const base::Feature kAutofillUpstreamShowNewUi; | |
| 37 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparator; | 38 extern const base::Feature kAutofillUpstreamUseAutofillProfileComparator; |
| 38 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile; | 39 extern const base::Feature kAutofillUpstreamUseNotRecentlyUsedAutofillProfile; |
| 39 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; | 40 extern const char kCreditCardSigninPromoImpressionLimitParamKey[]; |
| 40 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; | 41 extern const char kAutofillCreditCardLastUsedDateShowExpirationDateKey[]; |
| 41 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[]; | 42 extern const char kAutofillUpstreamMaxMinutesSinceAutofillProfileUseKey[]; |
| 42 | 43 |
| 43 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
| 44 extern const base::Feature kCreditCardAutofillTouchBar; | 45 extern const base::Feature kCreditCardAutofillTouchBar; |
| 45 #endif // defined(OS_MACOSX) | 46 #endif // defined(OS_MACOSX) |
| 46 | 47 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 // Returns whether the experiment is enabled where if Chrome Autofill has a | 119 // Returns whether the experiment is enabled where if Chrome Autofill has a |
| 119 // server card synced down from Payments but the user manually enters its card | 120 // server card synced down from Payments but the user manually enters its card |
| 120 // number into a checkout form anyway, the option to locally save the card is | 121 // number into a checkout form anyway, the option to locally save the card is |
| 121 // offered. | 122 // offered. |
| 122 bool IsAutofillOfferLocalSaveIfServerCardManuallyEnteredExperimentEnabled(); | 123 bool IsAutofillOfferLocalSaveIfServerCardManuallyEnteredExperimentEnabled(); |
| 123 | 124 |
| 124 // Returns whether the experiment is enabled where Chrome Upstream requests CVC | 125 // Returns whether the experiment is enabled where Chrome Upstream requests CVC |
| 125 // in the offer to save bubble if it was not detected during the checkout flow. | 126 // in the offer to save bubble if it was not detected during the checkout flow. |
| 126 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); | 127 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled(); |
| 127 | 128 |
| 129 // Returns whether the experiment is enabled where Chrome Upstream displays a | |
| 130 // new save card bubble/infobar design. | |
| 131 bool IsAutofillUpstreamShowNewUiExperimentEnabled(); | |
|
Mathieu
2017/08/09 00:17:23
Upstream -> CardUpload?
Jared Saul
2017/08/09 00:24:19
I'm not opposed, but there are three other experim
| |
| 132 | |
| 128 // Returns the maximum time that could have elapsed since an address profile's | 133 // Returns the maximum time that could have elapsed since an address profile's |
| 129 // most recent use for the adress profile to be included in the candidate set | 134 // most recent use for the adress profile to be included in the candidate set |
| 130 // for card upload. Returns 0 if the experiment is not enabled. | 135 // for card upload. Returns 0 if the experiment is not enabled. |
| 131 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload(); | 136 base::TimeDelta GetMaxTimeSinceAutofillProfileUseForCardUpload(); |
| 132 | 137 |
| 133 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
| 134 // Returns whether the Credit Card Autofill Touch Bar experiment is enabled. | 139 // Returns whether the Credit Card Autofill Touch Bar experiment is enabled. |
| 135 bool IsCreditCardAutofillTouchBarExperimentEnabled(); | 140 bool IsCreditCardAutofillTouchBarExperimentEnabled(); |
| 136 #endif // defined(OS_MACOSX) | 141 #endif // defined(OS_MACOSX) |
| 137 | 142 |
| 138 } // namespace autofill | 143 } // namespace autofill |
| 139 | 144 |
| 140 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ | 145 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXPERIMENTS_H_ |
| OLD | NEW |