[Offline Pages] New persistent page consistency check
Introduces a new consistency check strategy for persistent pages. Since persistent pages should be living in an external directory and exposed to third party file explorers, we should not deleting any files. Some more details: - For all persistent pages, try to see if it still has its archive file - If not and the page has been missing the file for a while, delete the entry from DB and notify the system download manager about deletion; If it's newly discovered missing, set the file missing time in DB. - If the file is there and the page has been marked as missing file, remove the file missing time. - The new persistent page consistency check will run together with the ClearStorageTask, scheduled by actions(GetAllPages or SavePage) and limited by a time threshold. Bug: 830102 Change-Id: Ie90d9fd988c642bdb6f598982f93e33642bd97ca Reviewed-on: https://chromium-review.googlesource.com/1016015Reviewed-by:Steven Holte <holte@chromium.org> Reviewed-by:
Peter Williamson <petewil@chromium.org> Commit-Queue: Yafei Duan <romax@chromium.org> Cr-Commit-Position: refs/heads/master@{#552526}
Showing
This diff is collapsed.
Please register or sign in to comment