chromium/components/autofill/core/browser/webdata/addresses/contact_info_precondition_checker.cc

// Copyright 2024 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/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;

// Determines if the `finder`'s account is eligible to use the CONTACT_INFO
// type based on its managed state. Dasher users are not supported.
PreconditionState GetPreconditionStateFromAccountManagedStatus(
    const signin::AccountManagedStatusFinder* finder) {}

// Determines if the `core_account_info` corresponds to a child account. Those
// are excluded from the CONTACT_INFO data type.
// If the status is not available yet, the data is kept to prevent redownloding
// once the status was determined.
PreconditionState GetPreconditionStateFromAccountChildStatus(
    const signin::IdentityManager& identity_manager,
    const CoreAccountInfo& core_account_info) {}

PreconditionState GetStricterPreconditionState(PreconditionState a,
                                               PreconditionState b) {}

}  // namespace

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

}  // namespace autofill