Sink begin-list special handling of "indefinite" out of NextAfter()
NextAfter(kBegin, ...) has two callsites - ComputeNextIntervalTime() and HandleIntervalRestart(). In the latter we don't need to take any specific care about an "indefinite" value in the begin instance list (because an interval will never "end after" "indefinite"). For the former, the check ought to have no practical effect but we keep it around for clarity. This makes NextAfter() behaviorally independent of the |begin_or_end| argument, which in turn makes it easier to factor out. Factoring the list handling out will make it easier to add certain list-related optimizations. Bug: 1039243 Change-Id: I0eaa12a08e1b8e330955f486880cb3a9f4d99f78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089689Reviewed-by:Stephen Chenney <schenney@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#747824}
Showing
Please register or sign in to comment