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

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

Issue 690643002: Add RESTORE_MODE_DISABLED to RestoreMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 1 month 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_SERVER_BACKED_DEVICE_STATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_
7 7
8 namespace policy { 8 namespace policy {
9 9
10 // Dictionary key constants for prefs::kServerBackedDeviceState. 10 // Dictionary key constants for prefs::kServerBackedDeviceState.
11 extern const char kDeviceStateManagementDomain[]; 11 extern const char kDeviceStateManagementDomain[];
12 extern const char kDeviceStateRestoreMode[]; 12 extern const char kDeviceStateRestoreMode[];
13 extern const char kDeviceStateDisabled[];
14 extern const char kDeviceStateDisabledMessage[]; 13 extern const char kDeviceStateDisabledMessage[];
15 14
16 // Values for kDeviceStateRestoreMode. 15 // String constants used to persist the restorative action in the
16 // kDeviceStateRestoreMode dictionary entry.
17 extern const char kDeviceStateRestoreModeReEnrollmentRequested[];
17 extern const char kDeviceStateRestoreModeReEnrollmentEnforced[]; 18 extern const char kDeviceStateRestoreModeReEnrollmentEnforced[];
18 extern const char kDeviceStateRestoreModeReEnrollmentRequested[]; 19 extern const char kDeviceStateRestoreModeDisabled[];
20
21 // Restorative action to take after device reset.
22 enum RestoreMode {
23 // No state restoration.
24 RESTORE_MODE_NONE = 0,
25 // Enterprise enrollment requested, but user may skip.
26 RESTORE_MODE_REENROLLMENT_REQUESTED = 1,
27 // Enterprise enrollment is enforced and cannot be skipped.
28 RESTORE_MODE_REENROLLMENT_ENFORCED = 2,
29 // The device has been disabled by its owner. The device will show a warning
30 // screen and prevent the user from proceeding further.
31 RESTORE_MODE_DISABLED = 3,
32 };
33
34 // Parses the contents of the kDeviceStateRestoreMode dictionary entry and
35 // returns it as a RestoreMode.
36 RestoreMode GetRestoreMode();
19 37
20 } // namespace policy 38 } // namespace policy
21 39
22 #endif // CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_POLICY_SERVER_BACKED_DEVICE_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698