blob: f78e5952d3a63d2d1c911e0705efe9c16855e8ef [file] [log] [blame]
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: fgei <fgei@gmail.com>
Date: Mon, 26 Feb 2024 22:51:04 +0000
Subject: [PATCH] Enable usage of Android Autofill by default
---
components/autofill/core/common/autofill_features.cc | 2 +-
components/autofill/core/common/autofill_features.h | 2 +-
components/autofill/core/common/autofill_prefs.cc | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/components/autofill/core/common/autofill_features.cc b/components/autofill/core/common/autofill_features.cc
index 93eb10a630e8c..de28dba4e2270 100644
--- a/components/autofill/core/common/autofill_features.cc
+++ b/components/autofill/core/common/autofill_features.cc
@@ -725,7 +725,7 @@ BASE_FEATURE(kAutofillEnableSecurityTouchEventFilteringAndroid,
// Android Autofill.
BASE_FEATURE(kAutofillVirtualViewStructureAndroid,
"AutofillVirtualViewStructureAndroid",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
#endif // BUILDFLAG(IS_ANDROID)
diff --git a/components/autofill/core/common/autofill_features.h b/components/autofill/core/common/autofill_features.h
index c89447cecf5e4..e54ce1db90f22 100644
--- a/components/autofill/core/common/autofill_features.h
+++ b/components/autofill/core/common/autofill_features.h
@@ -234,7 +234,7 @@ BASE_DECLARE_FEATURE(kAutofillVirtualViewStructureAndroid);
inline constexpr base::FeatureParam<bool>
kAutofillVirtualViewStructureAndroidSkipsCompatibilityCheck{
&kAutofillVirtualViewStructureAndroid, "skip_compatibility_check",
- false};
+ true};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_APPLE)
diff --git a/components/autofill/core/common/autofill_prefs.cc b/components/autofill/core/common/autofill_prefs.cc
index 8b788bd5963fc..e348f7f4cd335 100644
--- a/components/autofill/core/common/autofill_prefs.cc
+++ b/components/autofill/core/common/autofill_prefs.cc
@@ -104,7 +104,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
#if BUILDFLAG(IS_ANDROID)
registry->RegisterBooleanPref(prefs::kAutofillUsingVirtualViewStructure,
- false);
+ true);
#endif
#if BUILDFLAG(IS_ANDROID)