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

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: Fix Luis's comments 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
« no previous file with comments | « chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h ('k') | chrome/test/BUILD.gn » ('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 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 NOTREACHED();
363 break;
360 } 364 }
361 break; 365 break;
362 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE: 366 case policy::EnrollmentStatus::REGISTRATION_BAD_MODE:
363 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode); 367 UMA(policy::kMetricEnrollmentInvalidEnrollmentMode);
364 break; 368 break;
365 case policy::EnrollmentStatus::NO_STATE_KEYS: 369 case policy::EnrollmentStatus::NO_STATE_KEYS:
366 UMA(policy::kMetricEnrollmentNoStateKeys); 370 UMA(policy::kMetricEnrollmentNoStateKeys);
367 break; 371 break;
368 case policy::EnrollmentStatus::VALIDATION_FAILED: 372 case policy::EnrollmentStatus::VALIDATION_FAILED:
369 UMA(policy::kMetricEnrollmentPolicyValidationFailed); 373 UMA(policy::kMetricEnrollmentPolicyValidationFailed);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 EnrollmentUMA(sample, enrollment_config_.mode); 438 EnrollmentUMA(sample, enrollment_config_.mode);
435 } 439 }
436 440
437 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 441 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
438 const base::Closure& callback) { 442 const base::Closure& callback) {
439 oauth_data_cleared_ = true; 443 oauth_data_cleared_ = true;
440 callback.Run(); 444 callback.Run();
441 } 445 }
442 446
443 } // namespace chromeos 447 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698