| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" | 5 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 return; | 248 return; |
| 249 case policy::DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER: | 249 case policy::DM_STATUS_SERVICE_INVALID_SERIAL_NUMBER: |
| 250 UMAFailure(policy::kMetricEnrollmentInvalidSerialNumber); | 250 UMAFailure(policy::kMetricEnrollmentInvalidSerialNumber); |
| 251 return; | 251 return; |
| 252 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: | 252 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: |
| 253 UMAFailure(policy::kMetricMissingLicensesError); | 253 UMAFailure(policy::kMetricMissingLicensesError); |
| 254 return; | 254 return; |
| 255 case policy::DM_STATUS_SERVICE_DEPROVISIONED: | 255 case policy::DM_STATUS_SERVICE_DEPROVISIONED: |
| 256 UMAFailure(policy::kMetricEnrollmentDeprovisioned); | 256 UMAFailure(policy::kMetricEnrollmentDeprovisioned); |
| 257 return; | 257 return; |
| 258 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: | |
| 259 UMAFailure(policy::kMetricEnrollmentDomainMismatch); | |
| 260 return; | |
| 261 } | 258 } |
| 262 break; | 259 break; |
| 263 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: | 260 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: |
| 264 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); | 261 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); |
| 265 return; | 262 return; |
| 266 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: | 263 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: |
| 267 UMAFailure(policy::kMetricLockboxTimeoutError); | 264 UMAFailure(policy::kMetricLockboxTimeoutError); |
| 268 return; | 265 return; |
| 269 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: | 266 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: |
| 270 UMAFailure(policy::kMetricEnrollmentWrongUserError); | 267 UMAFailure(policy::kMetricEnrollmentWrongUserError); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 294 sample = policy::kMetricEnrollmentAutoFailed; | 291 sample = policy::kMetricEnrollmentAutoFailed; |
| 295 UMA(sample); | 292 UMA(sample); |
| 296 } | 293 } |
| 297 | 294 |
| 298 void EnrollmentScreen::ShowSigninScreen() { | 295 void EnrollmentScreen::ShowSigninScreen() { |
| 299 actor_->Show(); | 296 actor_->Show(); |
| 300 actor_->ShowSigninScreen(); | 297 actor_->ShowSigninScreen(); |
| 301 } | 298 } |
| 302 | 299 |
| 303 } // namespace chromeos | 300 } // namespace chromeos |
| OLD | NEW |