diff options
author | Adolfo Victoria <adokar@google.com> | 2018-06-28 16:14:56 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-25 00:14:53 -0700 |
commit | 94ffe135dd1956d5abf3bdf41503d3d32c15be3b (patch) | |
tree | d1a5263d48e0dbbb284e69e8e64f8840330b27e4 /common/action_processor.cc | |
parent | fdc488d61200fd3445033c61b01c3d6ddfa46bb2 (diff) |
update_engine: Add Update Time Restrictions
Implementation for the update time restrictions policy where the admin
is allowed to choose time interval in which updates will not be checked.
- Adds WeeklyTime and WeeklyTimeInterval classes to update_engine to be
able to easily do interval range checking and time operations easily in
the policy. Added the wiring so the classes can be used as Values and
BoxedValues.
- Adds disallowed_intervals member to device_policy_provider, since this
contains the policy dictated disallowed intervals. The intervals are
obtained from libpolicy, a function was added to convert them to the
new WeeklyTime classes. Added the corresponding changes to the device
policy provider header and interface.
- Added the policy to chromeos_policy.cc so that it's taken into account
in UpdateCheckAllowed.
BUG=chromium:852860
TEST=cros_workon_make update_engine --test
Change-Id: If62a2b3650adf149ba87790345e1eb62f0e1bb1f
Reviewed-on: https://chromium-review.googlesource.com/1119397
Commit-Ready: Adolfo Higueros <adokar@google.com>
Tested-by: Adolfo Higueros <adokar@google.com>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Diffstat (limited to 'common/action_processor.cc')
0 files changed, 0 insertions, 0 deletions