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

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

Issue 2544773002: Fetch policy from Active Directory at the end of enrollment (Closed)
Patch Set: 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 (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/settings/install_attributes.h" 8 #include "chrome/browser/chromeos/settings/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 25 matching lines...) Expand all
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 STATUS_NO_MACHINE_IDENTIFICATION = 16, // Machine model or serial missing.
46 STATUS_ACTIVE_DIRECTORY_POLICY_FETCH_FAILED = 17, // Failed to fetch Active
47 // Directory policy via
48 // authpolicyd.
46 }; 49 };
47 50
48 // Helpers for constructing errors for relevant cases. 51 // Helpers for constructing errors for relevant cases.
49 static EnrollmentStatus ForStatus(Status status); 52 static EnrollmentStatus ForStatus(Status status);
50 static EnrollmentStatus ForRegistrationError( 53 static EnrollmentStatus ForRegistrationError(
51 DeviceManagementStatus client_status); 54 DeviceManagementStatus client_status);
52 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status); 55 static EnrollmentStatus ForFetchError(DeviceManagementStatus client_status);
53 static EnrollmentStatus ForRobotAuthFetchError( 56 static EnrollmentStatus ForRobotAuthFetchError(
54 DeviceManagementStatus client_status); 57 DeviceManagementStatus client_status);
55 static EnrollmentStatus ForRobotRefreshFetchError(int http_status); 58 static EnrollmentStatus ForRobotRefreshFetchError(int http_status);
(...skipping 28 matching lines...) Expand all
84 DeviceManagementStatus client_status_; 87 DeviceManagementStatus client_status_;
85 int http_status_; 88 int http_status_;
86 CloudPolicyStore::Status store_status_; 89 CloudPolicyStore::Status store_status_;
87 CloudPolicyValidatorBase::Status validation_status_; 90 CloudPolicyValidatorBase::Status validation_status_;
88 chromeos::InstallAttributes::LockResult lock_status_; 91 chromeos::InstallAttributes::LockResult lock_status_;
89 }; 92 };
90 93
91 } // namespace policy 94 } // namespace policy
92 95
93 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_POLICY_ENROLLMENT_STATUS_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698