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

Side by Side Diff: chrome/browser/chromeos/policy/enrollment_status_chromeos.h

Issue 2371213002: Refactor: Inject StatisticsProvider as a dependency of DeviceCloudPolicyInitializer. (Closed)
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_
7 7
8 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" 8 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
9 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 9 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
10 #include "components/policy/core/common/cloud/cloud_policy_store.h" 10 #include "components/policy/core/common/cloud/cloud_policy_store.h"
(...skipping 24 matching lines...) Expand all
35 /* STATUS_LOCK_TIMEOUT = 10, */ // Unused: Timeout while waiting for 35 /* STATUS_LOCK_TIMEOUT = 10, */ // Unused: Timeout while waiting for
36 // the lock. 36 // the lock.
37 /* STATUS_LOCK_WRONG_USER = 11, */ // Unused: Locked to different 37 /* STATUS_LOCK_WRONG_USER = 11, */ // Unused: Locked to different
38 // domain. 38 // domain.
39 STATUS_STORE_ERROR = 12, // Failed to store the policy. 39 STATUS_STORE_ERROR = 12, // Failed to store the policy.
40 STATUS_STORE_TOKEN_AND_ID_FAILED = 13, // Failed to store DM token and 40 STATUS_STORE_TOKEN_AND_ID_FAILED = 13, // Failed to store DM token and
41 // device ID. 41 // device ID.
42 STATUS_ATTRIBUTE_UPDATE_FAILED = 14, // Device attribute update failed. 42 STATUS_ATTRIBUTE_UPDATE_FAILED = 14, // Device attribute update failed.
43 STATUS_REGISTRATION_CERTIFICATE_FETCH_FAILED = 15, // Cannot obtain 43 STATUS_REGISTRATION_CERTIFICATE_FETCH_FAILED = 15, // Cannot obtain
44 // registration cert. 44 // registration cert.
45 STATUS_NO_MACHINE_IDENTIFICATION = 16, // Machine model or serial missing.
45 }; 46 };
46 47
47 // Helpers for constructing errors for relevant cases. 48 // Helpers for constructing errors for relevant cases.
48 static EnrollmentStatus ForStatus(Status status); 49 static EnrollmentStatus ForStatus(Status status);
49 static EnrollmentStatus ForRegistrationError( 50 static EnrollmentStatus ForRegistrationError(
50 DeviceManagementStatus client_status); 51 DeviceManagementStatus client_status);
51 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status); 52 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status);
52 static EnrollmentStatus ForRobotAuthFetchError( 53 static EnrollmentStatus ForRobotAuthFetchError(
53 DeviceManagementStatus client_status); 54 DeviceManagementStatus client_status);
54 static EnrollmentStatus ForRobotRefreshFetchError(int http_status); 55 static EnrollmentStatus ForRobotRefreshFetchError(int http_status);
(...skipping 28 matching lines...) Expand all
83 DeviceManagementStatus client_status_; 84 DeviceManagementStatus client_status_;
84 int http_status_; 85 int http_status_;
85 CloudPolicyStore::Status store_status_; 86 CloudPolicyStore::Status store_status_;
86 CloudPolicyValidatorBase::Status validation_status_; 87 CloudPolicyValidatorBase::Status validation_status_;
87 EnterpriseInstallAttributes::LockResult lock_status_; 88 EnterpriseInstallAttributes::LockResult lock_status_;
88 }; 89 };
89 90
90 } // namespace policy 91 } // namespace policy
91 92
92 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698