More helpful error on enrolling already-locked devices.
commit17f01f007ebf54028b0c564869ceb7ef3ff5fb05
authormnissler <mnissler@chromium.org>
Thu, 23 Apr 2015 14:25:27 +0000 (23 07:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 14:25:35 +0000 (23 14:25 +0000)
tree6602e8a56695ee40f155db7e23fd41f743e7b31f
parent6f23046b52a2a6087062c01238400c2e0a7d22c3
More helpful error on enrolling already-locked devices.

This adds code to distinguish the previous device mode locked in
installation-time attributes and shows a more appropriate error
message for devices that try to transition from an incompatible mode
during enterprise enrollment.

BUG=chromium:161310
TEST=See bug.

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

Cr-Commit-Position: refs/heads/master@{#326511}
chrome/app/chromeos_strings.grdp
chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
chrome/browser/chromeos/policy/enterprise_install_attributes.cc
chrome/browser/chromeos/policy/enterprise_install_attributes.h
chrome/browser/chromeos/policy/enterprise_install_attributes_unittest.cc
chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc
components/policy/core/common/cloud/enterprise_metrics.h
tools/metrics/histograms/histograms.xml