DescriptionAvoid lossy time stamp conversions when caching metadata.
base::Time uses int64, but blink time stamps use double. Blink Resource
response time stamps are converted from base::Time. When storing
Resource metadata to the HTTP cache, that double time stamp is converted
back to base::Time. This conversion is lossy and causes metadata to not
being cached due to time stamp mismatch.
The fix is not to convert the time stamp back to base::Time, and do the
comparison in double instead.
R=gavinp@chromium.org, jochen@chromium.org
BUG=chromium:453298
Committed: https://crrev.com/9222efb0a3410e4c8b2ab1072027b66262dfb594
Cr-Commit-Position: refs/heads/master@{#313922}
Patch Set 1 #Patch Set 2 : fix unit tests #
Total comments: 1
Messages
Total messages: 12 (2 generated)
|