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

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

Issue 387403003: Fix UI glitches in enterprise enrollment recovery. (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 75 // Checks whether enterprise enrollment recovery is required.
76 bool ShouldRecoverEnrollment() const; 76 bool ShouldRecoverEnrollment() const;
77 77
78 // Looks up the domain from |install_attributes_|.
79 std::string GetEnrollmentRecoveryDomain() const;
80
78 // Checks whether the user can cancel enrollment. 81 // Checks whether the user can cancel enrollment.
79 bool CanExitEnrollment() const; 82 bool CanExitEnrollment() const;
80 83
81 // Gets the domain this device is supposed to be enrolled to. 84 // Gets the domain this device is supposed to be enrolled to.
82 std::string GetForcedEnrollmentDomain() const; 85 std::string GetForcedEnrollmentDomain() const;
83 86
84 // CloudPolicyStore::Observer: 87 // CloudPolicyStore::Observer:
85 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE; 88 virtual void OnStoreLoaded(CloudPolicyStore* store) OVERRIDE;
86 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE; 89 virtual void OnStoreError(CloudPolicyStore* store) OVERRIDE;
87 90
(...skipping 28 matching lines...) Expand all
116 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; 119 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_;
117 120
118 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; 121 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); 123 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer);
121 }; 124 };
122 125
123 } // namespace policy 126 } // namespace policy
124 127
125 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 128 #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