[cr144][Android] Disable AutofillEnableLoyaltyCardsFilling feature (#33866)

* [Android] Disable AutofillEnableLoyaltyCardsFilling feature

* Added test for disabled feature
This commit is contained in:
samartnik
2026-02-11 23:37:30 +00:00
committed by GitHub
parent 49e5606c37
commit a6dae1ab1b
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -95,6 +95,9 @@ TEST(FeatureDefaultsTest, DisabledFeatures) {
&autofill::features::kAutofillEnableBuyNowPayLater,
&autofill::features::kAutofillEnableCardBenefitsForAmericanExpress,
&autofill::features::kAutofillEnableCardBenefitsForBmo,
#if BUILDFLAG(IS_ANDROID)
&autofill::features::kAutofillEnableLoyaltyCardsFilling,
#endif // BUILDFLAG(IS_ANDROID)
&autofill::features::debug::kAutofillServerCommunication,
&blink::features::kAdInterestGroupAPI,
&blink::features::kAIProofreadingAPI,
@@ -11,6 +11,9 @@ namespace autofill::features {
OVERRIDE_FEATURE_DEFAULT_STATES({{
{kAutofillAiServerModel, base::FEATURE_DISABLED_BY_DEFAULT},
#if BUILDFLAG(IS_ANDROID)
{kAutofillEnableLoyaltyCardsFilling, base::FEATURE_DISABLED_BY_DEFAULT},
#endif // BUILDFLAG(IS_ANDROID)
}});
} // namespace autofill::features
@@ -19,12 +19,15 @@ public class BraveCachedFlag extends CachedFlag {
private static final String MAGIC_STACK_ANDROID = "MagicStackAndroid";
private static final String RETAIN_OMNIBOX_ON_FOCUS = "RetainOmniboxOnFocus";
private static final String SURFACE_POLISH = "SurfacePolish";
private static final String AUTOFILL_ENABLE_LOYALTY_CARDS_FILLING =
"AutofillEnableLoyaltyCardsFilling";
// Set of flags to override.
private static final HashMap<String, Boolean> sFlags;
static {
sFlags = new HashMap<String, Boolean>();
sFlags.put(AUTOFILL_ENABLE_LOYALTY_CARDS_FILLING, false);
sFlags.put(CLEAR_BROWSING_DATA_ANDROID_SURVEY, false);
sFlags.put(FEED_CONTAINMENT, false);
sFlags.put(INCOGNITO_REAUTHENTICATION_FOR_ANDROID, true);