#include "components/plus_addresses/sync_utils/plus_address_data_type_controller.h"
#include "base/check_deref.h"
#include "base/functional/bind.h"
#include "components/plus_addresses/features.h"
#include "components/signin/public/identity_manager/account_managed_status_finder.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/sync/base/data_type.h"
#include "components/sync/service/data_type_controller.h"
#include "components/sync/service/sync_service.h"
#include "components/variations/service/google_groups_manager.h"
namespace plus_addresses {
namespace {
PreconditionState;
PreconditionState GetPreconditionStateFromAccountManagedStatus(
const signin::AccountManagedStatusFinder& finder) { … }
}
PlusAddressDataTypeController::PlusAddressDataTypeController(
syncer::DataType type,
std::unique_ptr<syncer::DataTypeControllerDelegate>
delegate_for_full_sync_mode,
std::unique_ptr<syncer::DataTypeControllerDelegate>
delegate_for_transport_mode,
syncer::SyncService* sync_service,
signin::IdentityManager* identity_manager,
GoogleGroupsManager* google_groups_manager)
: … { … }
PlusAddressDataTypeController::~PlusAddressDataTypeController() = default;
PreconditionState PlusAddressDataTypeController::GetPreconditionState() const { … }
void PlusAddressDataTypeController::OnStateChanged(syncer::SyncService*) { … }
void PlusAddressDataTypeController::RecreateManagedStatusFinder() { … }
void PlusAddressDataTypeController::OnAccountTypeDetermined() { … }
}