Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge 110][ZPS] Enable cross-session persistence for ZPS on NTP.
The current implementation of the in-memory ZPS cache is unable to persist cached entries across multiple user sessions due to storing entries entirely in memory. As such, when the user restarts their browser and/or starts a new session from scratch, it's possible for them to be presented with zero remote ZPS suggestions when focusing the omnibox (e.g. on a slow internet connection). In order to address this edge-case, this CL enhances the in-memory ZPS caching service with the ability to persist cached entries by means of the user preferences system which stores data on disk. Furthermore, this CL introduces a dedicated cache entry for storing ZPS responses received on the NTP (as opposed to simply caching them alongside ZPS responses for SRP/Web). This change will ensure that the NTP-related entry will no longer be evicted out of the cache due to a large number of SRP/Web-related cache entries. (cherry picked from commit bafe6e6) Bug: 1351224 Change-Id: Ia3a697e2487c37f48b5ad4e8e3a55bd5d2147bde Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4148352 Reviewed-by: Robbie Gibson <rkgibson@google.com> Reviewed-by: Sophie Chang <sophiechang@chromium.org> Reviewed-by: Moe Ahmadi <mahmadi@chromium.org> Commit-Queue: Khalid Peer <khalidpeer@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1090655} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156972 Cr-Commit-Position: refs/branch-heads/5481@{#251} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information
Khalid Peer
authored and
Chromium LUCI CQ
committed
Jan 12, 2023
1 parent
ae0e28c
commit d44dea5
Showing
9 changed files
with
159 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters