#include "chrome/enterprise_companion/enterprise_companion_status.h"
#include <string>
#include <variant>
#include "base/functional/overloaded.h"
#include "build/build_config.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_validator.h"
#if BUILDFLAG(IS_POSIX)
#include "base/posix/safe_strerror.h"
#else
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#endif
namespace enterprise_companion {
namespace {
constexpr std::string DeviceManagementStatusToString(
policy::DeviceManagementStatus status) { … }
constexpr std::string ApplicationErrorToString(ApplicationError error) { … }
std::string PosixErrnoToString(EnterpriseCompanionStatus::PosixErrno error) { … }
}
PersistedError::PersistedError(int space,
int code,
const std::string& description)
: … { … }
PersistedError::PersistedError(const PersistedError&) = default;
PersistedError::PersistedError(PersistedError&&) = default;
PersistedError::~PersistedError() = default;
PersistedError& PersistedError::operator=(const PersistedError&) = default;
PersistedError& PersistedError::operator=(PersistedError&&) = default;
std::string EnterpriseCompanionStatus::description() const { … }
EnterpriseCompanionStatus::EnterpriseCompanionStatus(
const EnterpriseCompanionStatus&) = default;
EnterpriseCompanionStatus::~EnterpriseCompanionStatus() = default;
EnterpriseCompanionStatus::EnterpriseCompanionStatus(ApplicationError error)
: … { … }
EnterpriseCompanionStatus::EnterpriseCompanionStatus(
StatusVariant status_variant)
: … { … }
}