Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)
Patch Set: Remove unnecessary includes Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/enterprise_enrollment_helper_ impl.h" 5 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_ impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); 350 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses);
351 break; 351 break;
352 case policy::DM_STATUS_SERVICE_DEPROVISIONED: 352 case policy::DM_STATUS_SERVICE_DEPROVISIONED:
353 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); 353 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned);
354 break; 354 break;
355 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: 355 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH:
356 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); 356 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch);
357 break; 357 break;
358 case policy::DM_STATUS_CANNOT_SIGN_REQUEST: 358 case policy::DM_STATUS_CANNOT_SIGN_REQUEST:
359 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest); 359 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest);
360 break;
361 case policy::DM_STATUS_SERVICE_ARC_DISABLED:
362 UMA(policy::kMetricEnrollmentArcDisabled);
360 } 363 }
361 break; 364 break;
362 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE: 365 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE:
363 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); 366 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode);
364 break; 367 break;
365 case policy::EnrollmentStatus::NO_STATE_KEYS: 368 case policy::EnrollmentStatus::NO_STATE_KEYS:
366 UMA(policy::kMetricEnrollmentNoStateKeys); 369 UMA(policy::kMetricEnrollmentNoStateKeys);
367 break; 370 break;
368 case policy::EnrollmentStatus::VALIDATION_FAILED: 371 case policy::EnrollmentStatus::VALIDATION_FAILED:
369 UMA(policy::kMetricEnrollmentPolicyValidationFailed); 372 UMA(policy::kMetricEnrollmentPolicyValidationFailed);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 EnrollmentUMA(sample, enrollment_config_.mode); 437 EnrollmentUMA(sample, enrollment_config_.mode);
435 } 438 }
436 439
437 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 440 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
438 const base::Closure& callback) { 441 const base::Closure& callback) {
439 oauth_data_cleared_ = true; 442 oauth_data_cleared_ = true;
440 callback.Run(); 443 callback.Run();
441 } 444 }
442 445
443 } // namespace chromeos 446 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698