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; |
258 } | 261 } |
259 break; | 262 break; |
260 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: | 263 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: |
261 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); | 264 UMAFailure(policy::kMetricEnrollmentInvalidEnrollmentMode); |
262 return; | 265 return; |
263 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: | 266 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: |
264 UMAFailure(policy::kMetricLockboxTimeoutError); | 267 UMAFailure(policy::kMetricLockboxTimeoutError); |
265 return; | 268 return; |
266 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: | 269 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: |
267 UMAFailure(policy::kMetricEnrollmentWrongUserError); | 270 UMAFailure(policy::kMetricEnrollmentWrongUserError); |
(...skipping 23 matching lines...) Expand all Loading... |
291 sample = policy::kMetricEnrollmentAutoFailed; | 294 sample = policy::kMetricEnrollmentAutoFailed; |
292 UMA(sample); | 295 UMA(sample); |
293 } | 296 } |
294 | 297 |
295 void EnrollmentScreen::ShowSigninScreen() { | 298 void EnrollmentScreen::ShowSigninScreen() { |
296 actor_->Show(); | 299 actor_->Show(); |
297 actor_->ShowSigninScreen(); | 300 actor_->ShowSigninScreen(); |
298 } | 301 } |
299 | 302 |
300 } // namespace chromeos | 303 } // namespace chromeos |
OLD | NEW |