| Index: components/metrics/metrics_log.cc
|
| diff --git a/components/metrics/metrics_log.cc b/components/metrics/metrics_log.cc
|
| index 8764a739fcd6af29cff51e3f6f6022fd16bcbe2b..2ea6f89eab4bdf7bd419d566910725a4fafbf958 100644
|
| --- a/components/metrics/metrics_log.cc
|
| +++ b/components/metrics/metrics_log.cc
|
| @@ -351,8 +351,9 @@ void MetricsLog::RecordEnvironment(
|
|
|
| SystemProfileProto::Hardware* hardware = system_profile->mutable_hardware();
|
|
|
| - // By default, the hardware class is empty (i.e., unknown).
|
| - hardware->set_hardware_class(std::string());
|
| + // HardwareModelName() will return an empty string on platforms where it's
|
| + // not implemented or if an error occured.
|
| + hardware->set_hardware_class(base::SysInfo::HardwareModelName());
|
|
|
| hardware->set_cpu_architecture(base::SysInfo::OperatingSystemArchitecture());
|
| hardware->set_system_ram_mb(base::SysInfo::AmountOfPhysicalMemoryMB());
|
|
|