Chromium Code Reviews| Index: chrome/browser/chromeos/login/hwid_checker.cc |
| diff --git a/chrome/browser/chromeos/login/hwid_checker.cc b/chrome/browser/chromeos/login/hwid_checker.cc |
| index 334e52035cc01088080119d129c46a00fca6c716..27bd207c9a36125b160272297363007ab42fa488 100644 |
| --- a/chrome/browser/chromeos/login/hwid_checker.cc |
| +++ b/chrome/browser/chromeos/login/hwid_checker.cc |
| @@ -127,22 +127,10 @@ bool IsMachineHWIDCorrect() { |
| return false; |
| } |
| if (!chromeos::IsHWIDCorrect(hwid)) { |
| - // Log the system vendor info to see what the system vendor is on the GCE |
| - // VMs. This info will be used to filter out error messages on VMs. See |
| - // http://crbug.com/585514 and http://crbug.com/585515 for more info. |
| - std::string system_vendor; |
| - stats->GetMachineStatistic(chromeos::system::kSystemVendorKey, |
| - &system_vendor); |
| - std::string firmware_type; |
| - const bool non_chrome_firmware = |
| - stats->GetMachineStatistic(chromeos::system::kFirmwareTypeKey, |
| - &firmware_type) && |
| - firmware_type == system::kFirmwareTypeValueNonchrome; |
| - if (non_chrome_firmware) { |
| - LOG(WARNING) << "Detected non-Chrome firmware with malformed HWID '" |
| - << hwid << "', assuming VM environment. " |
| - << "The system vendor is '" << system_vendor << "'."; |
| - } else { |
| + if (chromeos::system::kHardwareClassValueVM != hwid) { |
|
Daniel Erat
2016/08/05 19:03:54
nit: switch the order so the constant comes second
|
| + std::string system_vendor; |
| + stats->GetMachineStatistic(chromeos::system::kSystemVendorKey, |
| + &system_vendor); |
| LOG(ERROR) << "Machine has malformed HWID '" << hwid << "'. " |
| << "The system vendor is '" << system_vendor << "'."; |
| return false; |