Fix FaviconCache not updating visits times from sync
The previous API, OnReceivedSyncFavicon(), received a parameter |icon_bytes| that was actually only used in tests. This prevented the visit time from being updated (in-memory). While fixing this, we move some code (the loop that iterates all navigations of a sync_pb::SessionTab) to favicon_cache.cc, to make SessionsSyncManager smaller and couple FaviconCache's API more with how it is actually used (single caller). Bug: 817348 Change-Id: I8fb7457177e298759f40e0bcf8d576ffc9fb7f9a Reviewed-on: https://chromium-review.googlesource.com/940136Reviewed-by:Marc Treib <treib@chromium.org> Reviewed-by:
Nicolas Zea (slow) <zea@chromium.org> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#540304}
Showing
This diff is collapsed.
Please register or sign in to comment