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

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

Issue 374573006: Force enterprise enrollment flow upon detection of inconsistent state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 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 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // enrollment. 65 // enrollment.
66 void StartEnrollment(DeviceManagementService* device_management_service, 66 void StartEnrollment(DeviceManagementService* device_management_service,
67 const std::string& auth_token, 67 const std::string& auth_token,
68 bool is_auto_enrollment, 68 bool is_auto_enrollment,
69 const AllowedDeviceModes& allowed_modes, 69 const AllowedDeviceModes& allowed_modes,
70 const EnrollmentCallback& enrollment_callback); 70 const EnrollmentCallback& enrollment_callback);
71 71
72 // Checks whether enterprise enrollment should be a regular step during OOBE. 72 // Checks whether enterprise enrollment should be a regular step during OOBE.
73 bool ShouldAutoStartEnrollment() const; 73 bool ShouldAutoStartEnrollment() const;
74 74
75 // Checks whether enterprise enrollment recovery is required.
76 bool ShouldRecoverEnrollment() const;
77
75 // Checks whether the user can cancel enrollment. 78 // Checks whether the user can cancel enrollment.
76 bool CanExitEnrollment() const; 79 bool CanExitEnrollment() const;
77 80
78 // Gets the domain this device is supposed to be enrolled to. 81 // Gets the domain this device is supposed to be enrolled to.
79 std::string GetForcedEnrollmentDomain() const; 82 std::string GetForcedEnrollmentDomain() const;
80 83
81 // CloudPolicyStore::Observer: 84 // CloudPolicyStore::Observer:
82 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; 85 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE;
83 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; 86 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE;
84 87
(...skipping 28 matching lines...) Expand all
113 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; 116 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_;
114 117
115 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; 118 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_;
116 119
117 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); 120 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer);
118 }; 121 };
119 122
120 } // namespace policy 123 } // namespace policy
121 124
122 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 125 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698