#include "components/plus_addresses/settings/plus_address_setting_service_impl.h"
#include <memory>
#include <string_view>
#include "base/check.h"
#include "base/functional/callback_helpers.h"
#include "components/plus_addresses/settings/plus_address_setting_sync_bridge.h"
#include "components/plus_addresses/settings/plus_address_setting_sync_util.h"
#include "components/sync/base/data_type.h"
#include "components/sync/base/features.h"
#include "components/sync/model/client_tag_based_data_type_processor.h"
#include "components/sync/model/data_type_controller_delegate.h"
#include "components/sync/model/data_type_store.h"
#include "components/sync/model/forwarding_data_type_controller_delegate.h"
#include "components/sync/protocol/plus_address_setting_specifics.pb.h"
namespace plus_addresses {
namespace {
constexpr std::string_view kPlusAddressEnabledSetting = …;
constexpr std::string_view kAcceptedNoticeSetting = …;
}
PlusAddressSettingServiceImpl::PlusAddressSettingServiceImpl(
std::unique_ptr<PlusAddressSettingSyncBridge> bridge)
: … { … }
PlusAddressSettingServiceImpl::~PlusAddressSettingServiceImpl() = default;
bool PlusAddressSettingServiceImpl::GetIsPlusAddressesEnabled() const { … }
bool PlusAddressSettingServiceImpl::GetHasAcceptedNotice() const { … }
void PlusAddressSettingServiceImpl::SetHasAcceptedNotice() { … }
std::unique_ptr<syncer::DataTypeControllerDelegate>
PlusAddressSettingServiceImpl::GetSyncControllerDelegate() { … }
bool PlusAddressSettingServiceImpl::GetBoolean(std::string_view name) const { … }
}