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

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

Issue 2261763002: Device enterprise registration with a certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize pointers to nullptr. Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 break; 345 break;
346 case policy::DM_STATUS_SERVICE_MISSING_LICENSES: 346 case policy::DM_STATUS_SERVICE_MISSING_LICENSES:
347 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses); 347 UMA(policy::kMetricEnrollmentRegisterPolicyMissingLicenses);
348 break; 348 break;
349 case policy::DM_STATUS_SERVICE_DEPROVISIONED: 349 case policy::DM_STATUS_SERVICE_DEPROVISIONED:
350 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned); 350 UMA(policy::kMetricEnrollmentRegisterPolicyDeprovisioned);
351 break; 351 break;
352 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH: 352 case policy::DM_STATUS_SERVICE_DOMAIN_MISMATCH:
353 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch); 353 UMA(policy::kMetricEnrollmentRegisterPolicyDomainMismatch);
354 break; 354 break;
355 case policy::DM_STATUS_CANNOT_SIGN_REQUEST:
356 UMA(policy::kMetricEnrollmentRegisterCannotSignRequest);
355 } 357 }
356 break; 358 break;
357 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: 359 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE:
358 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); 360 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode);
359 break; 361 break;
360 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS: 362 case policy::EnrollmentStatus::STATUS_NO_STATE_KEYS:
361 UMA(policy::kMetricEnrollmentNoStateKeys); 363 UMA(policy::kMetricEnrollmentNoStateKeys);
362 break; 364 break;
363 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: 365 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
364 UMA(policy::kMetricEnrollmentPolicyValidationFailed); 366 UMA(policy::kMetricEnrollmentPolicyValidationFailed);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 EnrollmentUMA(sample, enrollment_config_.mode); 428 EnrollmentUMA(sample, enrollment_config_.mode);
427 } 429 }
428 430
429 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 431 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
430 const base::Closure& callback) { 432 const base::Closure& callback) {
431 oauth_data_cleared_ = true; 433 oauth_data_cleared_ = true;
432 callback.Run(); 434 callback.Run();
433 } 435 }
434 436
435 } // namespace chromeos 437 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698