#include "components/autofill/core/common/autofill_prefs.h"
#include "base/base64.h"
#include "base/feature_list.h"
#include "build/build_config.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "crypto/sha2.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif
namespace autofill {
namespace prefs {
namespace {
int GetSyncTransportOptInBitFieldForAccount(const PrefService* prefs,
const std::string& account_hash) { … }
}
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { … }
void MigrateDeprecatedAutofillPrefs(PrefService* pref_service) { … }
void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { … }
bool IsAutocompleteEnabled(const PrefService* prefs) { … }
bool IsCreditCardFIDOAuthEnabled(PrefService* prefs) { … }
void SetCreditCardFIDOAuthEnabled(PrefService* prefs, bool enabled) { … }
bool IsAutofillPaymentMethodsEnabled(const PrefService* prefs) { … }
void SetAutofillPaymentMethodsEnabled(PrefService* prefs, bool enabled) { … }
bool HasSeenIban(const PrefService* prefs) { … }
void SetAutofillHasSeenIban(PrefService* prefs) { … }
bool IsAutofillManaged(const PrefService* prefs) { … }
bool IsAutofillProfileManaged(const PrefService* prefs) { … }
bool IsAutofillCreditCardManaged(const PrefService* prefs) { … }
bool IsAutofillProfileEnabled(const PrefService* prefs) { … }
void SetAutofillProfileEnabled(PrefService* prefs, bool enabled) { … }
bool IsPaymentMethodsMandatoryReauthEnabled(const PrefService* prefs) { … }
void SetPaymentMethodsMandatoryReauthEnabled(PrefService* prefs, bool enabled) { … }
bool IsPaymentMethodsMandatoryReauthSetExplicitly(const PrefService* prefs) { … }
bool IsPaymentMethodsMandatoryReauthPromoShownCounterBelowMaxCap(
const PrefService* prefs) { … }
void IncrementPaymentMethodsMandatoryReauthPromoShownCounter(
PrefService* prefs) { … }
bool IsPaymentCvcStorageEnabled(const PrefService* prefs) { … }
void SetPaymentCvcStorage(PrefService* prefs, bool value) { … }
bool IsPaymentCardBenefitsEnabled(const PrefService* prefs) { … }
void SetPaymentCardBenefits(PrefService* prefs, bool value) { … }
void SetUserOptedInWalletSyncTransport(PrefService* prefs,
const CoreAccountId& account_id,
bool opted_in) { … }
bool IsUserOptedInWalletSyncTransport(const PrefService* prefs,
const CoreAccountId& account_id) { … }
void ClearSyncTransportOptIns(PrefService* prefs) { … }
void SetFacilitatedPaymentsPix(PrefService* prefs, bool value) { … }
bool IsFacilitatedPaymentsPixEnabled(const PrefService* prefs) { … }
}
}