Populate ChromeOS hardware_class in metrics log
Populate ChromeOS's hardware class in MetricsLog.RecordCoreSystemProfile
by implementing ChromeOS version of the HardwareModelName so that the
hardware_class field can be filled even for logs from previous run.
This is to fix large amount of ChromeOS reports have no hardware_class
This cl doesn't implement anything new but moves part of the
GetShortHardwareClass to ChromeOS's base::SysInfo::HardwareModelName().
This cl also does some cleanup in chromeos_metrics_provider and
removes GetShortHardwareClass function in variations_field_trial_creator.
The features::kUmaShortHWClass is always set to true now so some
conditions are no longer needed. The GetShortHardwareClass function is
replaced by base::SysInfo::HardwareModelName().
This cl will also affect our cloned install detection logic because
ChromeOS machine id can also be detected. Though, we'll not reset
client_ids because previously we never ran that logic.
Commit-Queue: Weilun Shi <firstname.lastname@example.org>
Reviewed-by: Kyle Horimoto <email@example.com>
Reviewed-by: Ilya Sherman <firstname.lastname@example.org>
Reviewed-by: Mark Mentovai <email@example.com>
Reviewed-by: Alexei Svitkine <firstname.lastname@example.org>
Auto-Submit: Weilun Shi <email@example.com>
1 file changed