diff options
author | Sergey Poromov <poromov@google.com> | 2019-05-29 11:58:37 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-06-04 09:01:19 -0700 |
commit | 3b8af8c450ace2528d02cf788f21226d422d09d6 (patch) | |
tree | b4daabbc3b100bf2a75e94645807a90b4884785a /policy/device_policy_impl.cc | |
parent | bfe383e6ad6dabc6df46d021a9149a7f744a457b (diff) | |
download | platform_external_libbrillo-3b8af8c450ace2528d02cf788f21226d422d09d6.tar.gz platform_external_libbrillo-3b8af8c450ace2528d02cf788f21226d422d09d6.tar.bz2 platform_external_libbrillo-3b8af8c450ace2528d02cf788f21226d422d09d6.zip |
libbrillo: Set RollbackAllowedMilestones enterprise default to 4
Changing the default value of RollbackAllowedMilestones policy
from 0 to 4 for enterprises (remains 0 for consumer devices).
This is how the policy should work according to documentation.
Basically it's a revert of https://crrev.com/c/1078811
BUG=chromium:963384
TEST=cros_workon_make --board=${BOARD} chromeos-base/libbrillo --test
Change-Id: I8b9aff465d1fb78ef414204e993cfe3eb60a6b32
Reviewed-on: https://chromium-review.googlesource.com/1635149
Commit-Ready: Sergey Poromov <poromov@chromium.org>
Tested-by: Sergey Poromov <poromov@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: Sergey Poromov <poromov@chromium.org>
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2
Cr-Mirrored-Commit: 8f4111a9f7886a9778d9d4eb79603de7956e1e1f
Diffstat (limited to 'policy/device_policy_impl.cc')
-rw-r--r-- | policy/device_policy_impl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/policy/device_policy_impl.cc b/policy/device_policy_impl.cc index 114ac84..0cc572f 100644 --- a/policy/device_policy_impl.cc +++ b/policy/device_policy_impl.cc @@ -409,8 +409,9 @@ bool DevicePolicyImpl::GetRollbackAllowedMilestones( } } // Policy is not present, use default for enterprise devices. - VLOG(1) << "RollbackAllowedMilestones policy is not set, using default 0."; - *rollback_allowed_milestones = 0; + VLOG(1) << "RollbackAllowedMilestones policy is not set, using default " + << kMaxRollbackAllowedMilestones << "."; + *rollback_allowed_milestones = kMaxRollbackAllowedMilestones; return true; } |