#include "components/autofill/core/browser/webdata/addresses/contact_info_precondition_checker.h"
#include "base/check_deref.h"
#include "base/functional/bind.h"
#include "components/sync/base/features.h"
#include "components/sync/service/sync_user_settings.h"
namespace autofill {
namespace {
PreconditionState;
PreconditionState GetPreconditionStateFromAccountManagedStatus(
const signin::AccountManagedStatusFinder* finder) { … }
PreconditionState GetPreconditionStateFromAccountChildStatus(
const signin::IdentityManager& identity_manager,
const CoreAccountInfo& core_account_info) { … }
PreconditionState GetStricterPreconditionState(PreconditionState a,
PreconditionState b) { … }
}
ContactInfoPreconditionChecker::ContactInfoPreconditionChecker(
syncer::SyncService* sync_service,
signin::IdentityManager* identity_manager,
base::RepeatingClosure on_precondition_changed)
: … { … }
ContactInfoPreconditionChecker::~ContactInfoPreconditionChecker() = default;
PreconditionState ContactInfoPreconditionChecker::GetPreconditionState() const { … }
void ContactInfoPreconditionChecker::OnStateChanged(syncer::SyncService* sync) { … }
void ContactInfoPreconditionChecker::OnRefreshTokensLoaded() { … }
void ContactInfoPreconditionChecker::OnExtendedAccountInfoUpdated(
const AccountInfo& info) { … }
void ContactInfoPreconditionChecker::AccountTypeDetermined() { … }
}