Fix for missing activity reports on certain devices.
It was observed on Fievel device. When ActivityStorage::LocalTimeToUtcDayStart is called with parameter being base::Time::Max(), it returns timestamp like 1939-01-12 08:00:00.000 UTC, and all activity intervals referring to year 2020 are filtered out. It looks like in certain SDK timestamp.LocalMidnight() does not work correctly, when timestamp.is_max(). As a workaround, the code will no longer call it for Max timestamp. This can never happen to actual intervals, only to a report threshold. Bug: 1104428 Change-Id: I1704e6fe43f7c42517653c007f293aa7c3b0eb56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2293264Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Leonid Baraz <lbaraz@chromium.org> Cr-Commit-Position: refs/heads/master@{#787797}
Showing
Please register or sign in to comment