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

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

Issue 2544773002: Fetch policy from Active Directory at the end of enrollment (Closed)
Patch Set: Convert CHECK_EQ(true, ...) to CHECK(...) Created 4 years 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 break; 414 break;
415 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED: 415 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED:
416 UMA(policy::kMetricEnrollmentAttributeUpdateFailed); 416 UMA(policy::kMetricEnrollmentAttributeUpdateFailed);
417 break; 417 break;
418 case policy::EnrollmentStatus::STATUS_REGISTRATION_CERTIFICATE_FETCH_FAILED: 418 case policy::EnrollmentStatus::STATUS_REGISTRATION_CERTIFICATE_FETCH_FAILED:
419 UMA(policy::kMetricEnrollmentRegistrationCertificateFetchFailed); 419 UMA(policy::kMetricEnrollmentRegistrationCertificateFetchFailed);
420 break; 420 break;
421 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION: 421 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION:
422 UMA(policy::kMetricEnrollmentNoDeviceIdentification); 422 UMA(policy::kMetricEnrollmentNoDeviceIdentification);
423 break; 423 break;
424 case policy::EnrollmentStatus::STATUS_ACTIVE_DIRECTORY_POLICY_FETCH_FAILED:
425 UMA(policy::kMetricEnrollmentActiveDirectoryPolicyFetchFailed);
426 break;
424 } 427 }
425 } 428 }
426 429
427 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) { 430 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) {
428 EnrollmentUMA(sample, enrollment_config_.mode); 431 EnrollmentUMA(sample, enrollment_config_.mode);
429 } 432 }
430 433
431 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 434 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
432 const base::Closure& callback) { 435 const base::Closure& callback) {
433 oauth_data_cleared_ = true; 436 oauth_data_cleared_ = true;
434 callback.Run(); 437 callback.Run();
435 } 438 }
436 439
437 } // namespace chromeos 440 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/policy/enrollment_handler_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698