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

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

Issue 2959853003: Add UI components for license type selection in ChromeOS login UI. (Closed)
Patch Set: Remove unused flex import Created 3 years, 5 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 break; 426 break;
427 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION: 427 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION:
428 UMA(policy::kMetricEnrollmentNoDeviceIdentification); 428 UMA(policy::kMetricEnrollmentNoDeviceIdentification);
429 break; 429 break;
430 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: 430 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED:
431 UMA(policy::kMetricEnrollmentActiveDirectoryPolicyFetchFailed); 431 UMA(policy::kMetricEnrollmentActiveDirectoryPolicyFetchFailed);
432 break; 432 break;
433 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED: 433 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED:
434 UMA(policy::kMetricEnrollmentStoreDMTokenFailed); 434 UMA(policy::kMetricEnrollmentStoreDMTokenFailed);
435 break; 435 break;
436 case policy::EnrollmentStatus::LICENSE_REQUEST_FAILED:
437 UMA(policy::kMetricEnrollmentLicenseRequestFailed);
438 break;
436 } 439 }
437 } 440 }
438 441
439 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) { 442 void EnterpriseEnrollmentHelperImpl::UMA(policy::MetricEnrollment sample) {
440 EnrollmentUMA(sample, enrollment_config_.mode); 443 EnrollmentUMA(sample, enrollment_config_.mode);
441 } 444 }
442 445
443 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 446 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
444 const base::Closure& callback) { 447 const base::Closure& callback) {
445 oauth_data_cleared_ = true; 448 oauth_data_cleared_ = true;
446 callback.Run(); 449 callback.Run();
447 } 450 }
448 451
449 } // namespace chromeos 452 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698