Don't enable forced re-enrollment on non-chrome hardware.
commitb8a1577bb97bb26a1af3e45014e7a79d4197cb5a
authormnissler <mnissler@chromium.org>
Tue, 16 Dec 2014 10:09:36 +0000 (16 02:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 10:09:53 +0000 (16 10:09 +0000)
tree4280e6719ad39f544708f8442cea0642fc4836bf
parent05d989c89d9ab77ade7c363a9c7cd6fa1381db0d
Don't enable forced re-enrollment on non-chrome hardware.

Add a firmware type check as a signal to indicate that we're running
on non-chrome hardware. In that environment, it doesn't make sense to
enable forced re-enrollment as state key generation will likely fail
anyways. The --enterprise-enable-forced-re-enrollment=always flag
still allows one to manually switch FRE on in these environments if it
is actually desired.

BUG=chromium:426781
TEST=FRE not triggering in VMs.

Review URL: https://codereview.chromium.org/788943002

Cr-Commit-Position: refs/heads/master@{#308562}
chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.cc
chromeos/system/statistics_provider.cc
chromeos/system/statistics_provider.h