commit | b3392d988ae23dc52d9b386af47dc6a53a2d22c8 | [log] [tgz] |
---|---|---|
author | Adolfo Victoria <adokar@google.com> | Sat Aug 11 00:42:00 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Aug 11 00:42:00 2018 |
tree | d4f2d883392530bd232b951d7cc968da7ced8540 | |
parent | e4c26fa3e9b08e7dda082537ecfdc254c8d8db35 [diff] |
Add vector of intervals range checking to Time Restrictions policy * Add function GetEndOfCurrent interval to obtain the last end of the interval which contains the current time. * Add function MaterializeIntervalsToLocalTimezone, which materializes the given intervals to the current local timezone. * Add function TimeIsInsideCrosSettingsIntervals, which checks if the current time is inside the intervals set in cros settings. It then returns the localized string of the end of the interval that contains the current time. BUG=chromium:852860 TEST=added unittests Change-Id: Ife32e31c8a929827fd14ab9f108c49eacb9c32c3 Reviewed-on: https://chromium-review.googlesource.com/1132676 Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#582403}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .