[Downloads Home] Support items with the same creation time.
The DateOrderedListMutator kept OfflineItems in a Map keyed by their creation time. Two entries with the same one (or within the same millisecond) would therefore override each other. This replaces the map with a sorted set and a custom comparator to keep the descending sort order. Bug: 962889 Change-Id: I1bef6b32a42dc34b49946512e31f440999cf7287 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609901 Commit-Queue: Richard Knoll <knollr@chromium.org> Reviewed-by:Xing Liu <xingliu@chromium.org> Reviewed-by:
Shakti Sahu <shaktisahu@chromium.org> Cr-Commit-Position: refs/heads/master@{#659446}
Showing
Please register or sign in to comment