| 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 #include "components/autofill/core/browser/autofill_experiments.h" | 5 #include "components/autofill/core/browser/autofill_experiments.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
| 9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const base::Feature kAutofillScanCardholderName{ | 29 const base::Feature kAutofillScanCardholderName{ |
| 30 "AutofillScanCardholderName", base::FEATURE_DISABLED_BY_DEFAULT}; | 30 "AutofillScanCardholderName", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 31 const base::Feature kAutofillCreditCardPopupLayout{ | 31 const base::Feature kAutofillCreditCardPopupLayout{ |
| 32 "AutofillCreditCardPopupLayout", base::FEATURE_DISABLED_BY_DEFAULT}; | 32 "AutofillCreditCardPopupLayout", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 33 const base::Feature kAutofillCreditCardLastUsedDateDisplay{ | 33 const base::Feature kAutofillCreditCardLastUsedDateDisplay{ |
| 34 "AutofillCreditCardLastUsedDateDisplay", base::FEATURE_DISABLED_BY_DEFAULT}; | 34 "AutofillCreditCardLastUsedDateDisplay", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 35 const base::Feature kAutofillUkmLogging{"AutofillUkmLogging", | 35 const base::Feature kAutofillUkmLogging{"AutofillUkmLogging", |
| 36 base::FEATURE_DISABLED_BY_DEFAULT}; | 36 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 37 const base::Feature kAutofillUpstreamRequestCvcIfMissing{ | 37 const base::Feature kAutofillUpstreamRequestCvcIfMissing{ |
| 38 "AutofillUpstreamRequestCvcIfMissing", base::FEATURE_DISABLED_BY_DEFAULT}; | 38 "AutofillUpstreamRequestCvcIfMissing", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 39 const base::Feature kAutofillUpstreamUseAutofillProfileComparatorForName{ |
| 40 "AutofillUpstreamUseAutofillProfileComparatorForName", |
| 41 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 39 const char kCreditCardSigninPromoImpressionLimitParamKey[] = "impression_limit"; | 42 const char kCreditCardSigninPromoImpressionLimitParamKey[] = "impression_limit"; |
| 40 const char kAutofillCreditCardPopupBackgroundColorKey[] = "background_color"; | 43 const char kAutofillCreditCardPopupBackgroundColorKey[] = "background_color"; |
| 41 const char kAutofillCreditCardPopupDividerColorKey[] = "dropdown_divider_color"; | 44 const char kAutofillCreditCardPopupDividerColorKey[] = "dropdown_divider_color"; |
| 42 const char kAutofillCreditCardPopupValueBoldKey[] = "is_value_bold"; | 45 const char kAutofillCreditCardPopupValueBoldKey[] = "is_value_bold"; |
| 43 const char kAutofillCreditCardPopupIsValueAndLabelInSingleLineKey[] = | 46 const char kAutofillCreditCardPopupIsValueAndLabelInSingleLineKey[] = |
| 44 "is_value_and_label_in_single_line"; | 47 "is_value_and_label_in_single_line"; |
| 45 const char kAutofillPopupDropdownItemHeightKey[] = "dropdown_item_height"; | 48 const char kAutofillPopupDropdownItemHeightKey[] = "dropdown_item_height"; |
| 46 const char kAutofillCreditCardPopupIsIconAtStartKey[] = | 49 const char kAutofillCreditCardPopupIsIconAtStartKey[] = |
| 47 "is_credit_card_icon_at_start"; | 50 "is_credit_card_icon_at_start"; |
| 48 const char kAutofillPopupMarginKey[] = "margin"; | 51 const char kAutofillPopupMarginKey[] = "margin"; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 236 |
| 234 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled() { | 237 bool IsAutofillUpstreamRequestCvcIfMissingExperimentEnabled() { |
| 235 #if defined(OS_ANDROID) | 238 #if defined(OS_ANDROID) |
| 236 return false; | 239 return false; |
| 237 #else | 240 #else |
| 238 return base::FeatureList::IsEnabled(kAutofillUpstreamRequestCvcIfMissing); | 241 return base::FeatureList::IsEnabled(kAutofillUpstreamRequestCvcIfMissing); |
| 239 #endif | 242 #endif |
| 240 } | 243 } |
| 241 | 244 |
| 242 } // namespace autofill | 245 } // namespace autofill |
| OLD | NEW |