#include "chrome/browser/enterprise/signals/device_info_fetcher_linux.h"
#if defined(USE_GIO)
#include <gio/gio.h>
#endif
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <string>
#include "base/environment.h"
#include "base/files/dir_reader_posix.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/nix/xdg_util.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/system/sys_info.h"
#include "chrome/browser/enterprise/signals/signals_common.h"
#include "net/base/network_interfaces.h"
namespace enterprise_signals {
namespace {
std::string ReadFile(std::string path_str) { … }
std::string GetDeviceModel() { … }
std::string GetOsVersion() { … }
std::string GetSecurityPatchLevel() { … }
std::string GetDeviceHostName() { … }
std::string GetSerialNumber() { … }
SettingValue GetScreenlockSecured() { … }
SettingValue GetDiskEncrypted() { … }
std::vector<std::string> GetMacAddresses() { … }
}
std::unique_ptr<DeviceInfoFetcher> DeviceInfoFetcher::CreateInstanceInternal() { … }
DeviceInfoFetcherLinux::DeviceInfoFetcherLinux() = default;
DeviceInfoFetcherLinux::~DeviceInfoFetcherLinux() = default;
DeviceInfo DeviceInfoFetcherLinux::Fetch() { … }
}