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

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

Issue 2382833002: Rename policy::EnterpriseInstallAttributes to chromeos::InstallAttributes. (Closed)
Patch Set: Add missing #includes. Created 4 years, 2 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 UMA(policy::kMetricEnrollmentNoStateKeys); 359 UMA(policy::kMetricEnrollmentNoStateKeys);
360 break; 360 break;
361 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: 361 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
362 UMA(policy::kMetricEnrollmentPolicyValidationFailed); 362 UMA(policy::kMetricEnrollmentPolicyValidationFailed);
363 break; 363 break;
364 case policy::EnrollmentStatus::STATUS_STORE_ERROR: 364 case policy::EnrollmentStatus::STATUS_STORE_ERROR:
365 UMA(policy::kMetricEnrollmentCloudPolicyStoreError); 365 UMA(policy::kMetricEnrollmentCloudPolicyStoreError);
366 break; 366 break;
367 case policy::EnrollmentStatus::STATUS_LOCK_ERROR: 367 case policy::EnrollmentStatus::STATUS_LOCK_ERROR:
368 switch (status.lock_status()) { 368 switch (status.lock_status()) {
369 case policy::EnterpriseInstallAttributes::LOCK_SUCCESS: 369 case InstallAttributes::LOCK_SUCCESS:
370 case policy::EnterpriseInstallAttributes::LOCK_NOT_READY: 370 case InstallAttributes::LOCK_NOT_READY:
371 NOTREACHED(); 371 NOTREACHED();
372 break; 372 break;
373 case policy::EnterpriseInstallAttributes::LOCK_TIMEOUT: 373 case InstallAttributes::LOCK_TIMEOUT:
374 UMA(policy::kMetricEnrollmentLockboxTimeoutError); 374 UMA(policy::kMetricEnrollmentLockboxTimeoutError);
375 break; 375 break;
376 case policy::EnterpriseInstallAttributes::LOCK_BACKEND_INVALID: 376 case InstallAttributes::LOCK_BACKEND_INVALID:
377 UMA(policy::kMetricEnrollmentLockBackendInvalid); 377 UMA(policy::kMetricEnrollmentLockBackendInvalid);
378 break; 378 break;
379 case policy::EnterpriseInstallAttributes::LOCK_ALREADY_LOCKED: 379 case InstallAttributes::LOCK_ALREADY_LOCKED:
380 UMA(policy::kMetricEnrollmentLockAlreadyLocked); 380 UMA(policy::kMetricEnrollmentLockAlreadyLocked);
381 break; 381 break;
382 case policy::EnterpriseInstallAttributes::LOCK_SET_ERROR: 382 case InstallAttributes::LOCK_SET_ERROR:
383 UMA(policy::kMetricEnrollmentLockSetError); 383 UMA(policy::kMetricEnrollmentLockSetError);
384 break; 384 break;
385 case policy::EnterpriseInstallAttributes::LOCK_FINALIZE_ERROR: 385 case InstallAttributes::LOCK_FINALIZE_ERROR:
386 UMA(policy::kMetricEnrollmentLockFinalizeError); 386 UMA(policy::kMetricEnrollmentLockFinalizeError);
387 break; 387 break;
388 case policy::EnterpriseInstallAttributes::LOCK_READBACK_ERROR: 388 case InstallAttributes::LOCK_READBACK_ERROR:
389 UMA(policy::kMetricEnrollmentLockReadbackError); 389 UMA(policy::kMetricEnrollmentLockReadbackError);
390 break; 390 break;
391 case policy::EnterpriseInstallAttributes::LOCK_WRONG_DOMAIN: 391 case InstallAttributes::LOCK_WRONG_DOMAIN:
392 UMA(policy::kMetricEnrollmentLockDomainMismatch); 392 UMA(policy::kMetricEnrollmentLockDomainMismatch);
393 break; 393 break;
394 case policy::EnterpriseInstallAttributes::LOCK_WRONG_MODE: 394 case InstallAttributes::LOCK_WRONG_MODE:
395 UMA(policy::kMetricEnrollmentLockModeMismatch); 395 UMA(policy::kMetricEnrollmentLockModeMismatch);
396 break; 396 break;
397 } 397 }
398 break; 398 break;
399 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED: 399 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED:
400 UMA(policy::kMetricEnrollmentRobotAuthCodeFetchFailed); 400 UMA(policy::kMetricEnrollmentRobotAuthCodeFetchFailed);
401 break; 401 break;
402 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED: 402 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED:
403 UMA(policy::kMetricEnrollmentRobotRefreshTokenFetchFailed); 403 UMA(policy::kMetricEnrollmentRobotRefreshTokenFetchFailed);
404 break; 404 break;
(...skipping 19 matching lines...) Expand all
424 EnrollmentUMA(sample, enrollment_config_.mode); 424 EnrollmentUMA(sample, enrollment_config_.mode);
425 } 425 }
426 426
427 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared( 427 void EnterpriseEnrollmentHelperImpl::OnSigninProfileCleared(
428 const base::Closure& callback) { 428 const base::Closure& callback) {
429 oauth_data_cleared_ = true; 429 oauth_data_cleared_ = true;
430 callback.Run(); 430 callback.Run();
431 } 431 }
432 432
433 } // namespace chromeos 433 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698