| Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
|
| diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
|
| index 15642edf193bd21cebc3a4d3734c488d22ed9db5..f62fb55e701fd190da53999d24db3bec41d281d3 100644
|
| --- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
|
| +++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
|
| @@ -118,6 +118,20 @@ EnrollmentHandlerChromeOS::~EnrollmentHandlerChromeOS() {
|
| void EnrollmentHandlerChromeOS::StartEnrollment() {
|
| CHECK_EQ(STEP_PENDING, enrollment_step_);
|
| enrollment_step_ = STEP_STATE_KEYS;
|
| +
|
| + if (client_->machine_id().empty()) {
|
| + LOG(ERROR) << "Machine id empty.";
|
| + ReportResult(EnrollmentStatus::ForStatus(
|
| + EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION));
|
| + return;
|
| + }
|
| + if (client_->machine_model().empty()) {
|
| + LOG(ERROR) << "Machine model empty.";
|
| + ReportResult(EnrollmentStatus::ForStatus(
|
| + EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION));
|
| + return;
|
| + }
|
| +
|
| state_keys_broker_->RequestStateKeys(
|
| base::Bind(&EnrollmentHandlerChromeOS::HandleStateKeysResult,
|
| weak_ptr_factory_.GetWeakPtr()));
|
|
|