// Copyright 2020 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/metrics/machine_id_provider.h" #include <stdint.h> #include "base/check.h" #include "base/system/sys_info.h" namespace metrics { // Checks if hardware model name is available. bool MachineIdProvider::HasId() { … } // On non-windows, the machine id is based on the hardware model name. // This will suffice as users are unlikely to change to the same machine model. std::string MachineIdProvider::GetMachineId() { … } } // namespace metrics