history: removes usage of MostVisitedURL::redirects from TopSites
This is the start of getting rid of the usage of MostVisitedURL::redirects from TopSites. It turns out the redirects can be *huge*. Redirects are used for only one thing, to optimize deleting a url. That is, when a url is deleted storing the redirects helped to avoid unnecessarily querying history. Given redirects can be huge, and deletion is infrequent, this optimization isn't worth it and I'm going to remove the complexity. This patch removes the optimization and changes TopSites to always query history after removal. Assuming this lands, and sticks, I plan to change around the database side and hopefully completely remove MostVisitedURL::redirects. BUG=995906 TEST=covered by tests Change-Id: Id0ec659e112776b89b69ad916ac5c7f6ab723f9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1762441 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#689071}
Showing
Please register or sign in to comment