commit | 04902d11c614f8d1218d20948e7ee5dd1c548f21 | [log] [tgz] |
---|---|---|
author | Pavol Marko <pmarko@chromium.org> | Tue Aug 14 12:36:08 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Aug 14 12:36:08 2018 |
tree | 48fbd991dfa56942d71565b310fa24df7dbd1bd8 | |
parent | 69c3eb581209f8536f80c7ef17bf0c963f2cd239 [diff] |
[Reland] 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. This is a reland of CL:1132676 which fixes memory leaks that lead to a revert (revert was CL:1172003). BUG=chromium:852860 TEST=added unittests Change-Id: I8ad01d4ab90d4e699e4b7377c24e4932513ebe1b Reviewed-on: https://chromium-review.googlesource.com/1172128 Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Pavol Marko <pmarko@chromium.org> Cr-Commit-Position: refs/heads/master@{#582892}
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 .