summaryrefslogtreecommitdiff
path: root/update_manager/rollback_prefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'update_manager/rollback_prefs.h')
-rw-r--r--update_manager/rollback_prefs.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/update_manager/rollback_prefs.h b/update_manager/rollback_prefs.h
index 11d09d67..6cbc447d 100644
--- a/update_manager/rollback_prefs.h
+++ b/update_manager/rollback_prefs.h
@@ -31,9 +31,21 @@ enum class RollbackToTargetVersion {
kDisabled = 1,
kRollbackAndPowerwash = 2,
kRollbackAndRestoreIfPossible = 3,
- kRollbackOnlyIfRestorePossible = 4,
// This value must be the last entry.
- kMaxValue = 5
+ kMaxValue = 4
+};
+
+// Whether the device should do rollback and powerwash on channel downgrade.
+// Matches chrome_device_policy.proto's
+// |AutoUpdateSettingsProto::ChannelDowngradeBehavior|.
+enum class ChannelDowngradeBehavior {
+ kUnspecified = 0,
+ kWaitForVersionToCatchUp = 1,
+ kRollback = 2,
+ kAllowUserToConfigure = 3,
+ // These values must be kept up to date.
+ kFirstValue = kUnspecified,
+ kLastValue = kAllowUserToConfigure
};
} // namespace chromeos_update_manager