mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
Confusion between storeDone() and storeDone(long end) resulted in certain sessions (bookmarks and form history) not overriding the current method. As a result, their final "flush the queue" methods weren't being called by the buffering middleware. This patch removes the storeDone(long end) method, making such confusion a non-issue. Given that a lot of sessions tend to build up buffers which they need to then flush after a storeDone() call, passing in a timestamp into that method doesn't make sense. Instead, let's supply a default implementation in RepositorySession which calls onStoreCompleted(endTimestamp) with current time, and allow sessions to override this method and own the onStoreCompleted(endTimestamp) call. MozReview-Commit-ID: 84o7aAL8RPC