Remove stable channel check for rollback.
BUG=chromium:356265
TEST=Unittests
Change-Id: Id1b8345fdf5cbd4ea12e3fe297b41260b96ee86c
Reviewed-on: https://chromium-review.googlesource.com/191443
Tested-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Chris Sosa <sosa@chromium.org>
diff --git a/update_attempter_unittest.cc b/update_attempter_unittest.cc
index 396b4a8..ac5bbe1 100644
--- a/update_attempter_unittest.cc
+++ b/update_attempter_unittest.cc
@@ -486,9 +486,9 @@
string install_path = "/dev/sda3";
bool is_rollback_allowed = false;
- // We only allow rollback on devices that are neither enterprise enrolled or
- // not on the stable channel, and which have a valid slot to rollback too.
- if (!(enterprise_rollback || stable_channel) && valid_slot) {
+ // We only allow rollback on devices that are not enterprise enrolled and
+ // which have a valid slot to rollback to.
+ if (!enterprise_rollback && valid_slot) {
is_rollback_allowed = true;
}