chromium/components/autofill/core/common/autofill_prefs.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Returns the opt-in bitfield for the specific |account_id| or 0 if no entry
// was found.
int GetSyncTransportOptInBitFieldForAccount(const PrefService* prefs,
                                            const std::string& account_hash) {}

}  // namespace

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) {}

// If called, always sets the pref to true, and once true, it will follow the
// user around forever.
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) {}

// UsesVirtualViewStructureForAutofill is defined in
// //chrome/browser/ui/autofill/autofill_client_provider.cc

void SetFacilitatedPaymentsPix(PrefService* prefs, bool value) {}

bool IsFacilitatedPaymentsPixEnabled(const PrefService* prefs) {}

}  // namespace prefs
}  // namespace autofill