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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/server_backed_device_state.h
diff --git a/chrome/browser/chromeos/policy/server_backed_device_state.h b/chrome/browser/chromeos/policy/server_backed_device_state.h
index 3581617993407717a0c18fd5ddce5f8920f21917..6f8fb244e6373328b78ff16f91dafd6bbcd3f54b 100644
--- a/chrome/browser/chromeos/policy/server_backed_device_state.h
+++ b/chrome/browser/chromeos/policy/server_backed_device_state.h
@@ -10,12 +10,30 @@ namespace policy {
// Dictionary key constants for prefs::kServerBackedDeviceState.
extern const char kDeviceStateManagementDomain[];
extern const char kDeviceStateRestoreMode[];
-extern const char kDeviceStateDisabled[];
extern const char kDeviceStateDisabledMessage[];
-// Values for kDeviceStateRestoreMode.
-extern const char kDeviceStateRestoreModeReEnrollmentEnforced[];
+// String constants used to persist the restorative action in the
+// kDeviceStateRestoreMode dictionary entry.
extern const char kDeviceStateRestoreModeReEnrollmentRequested[];
+extern const char kDeviceStateRestoreModeReEnrollmentEnforced[];
+extern const char kDeviceStateRestoreModeDisabled[];
+
+// Restorative action to take after device reset.
+enum RestoreMode {
+ // No state restoration.
+ RESTORE_MODE_NONE = 0,
+ // Enterprise enrollment requested, but user may skip.
+ RESTORE_MODE_REENROLLMENT_REQUESTED = 1,
+ // Enterprise enrollment is enforced and cannot be skipped.
+ RESTORE_MODE_REENROLLMENT_ENFORCED = 2,
+ // The device has been disabled by its owner. The device will show a warning
+ // screen and prevent the user from proceeding further.
+ RESTORE_MODE_DISABLED = 3,
+};
+
+// Parses the contents of the kDeviceStateRestoreMode dictionary entry and
+// returns it as a RestoreMode.
+RestoreMode GetRestoreMode();
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698