
This CL introduces a TrimEntries method to AutofillAiModelCacheImpl. TrimEntries does two things: - It removes entries (starting with the oldest) if the cache exceeds the target maximum size. - It removes entries once they exceed the maximum target age. The TrimEntries method is triggered whenever the DB is loaded (i.e., on start) and when a cache entry is updated/added. Bug: 389631477 Change-Id: If9e1fee273e6596121ba45514a9114fe97b2be04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6317566 Reviewed-by: Christoph Schwering <schwering@google.com> Commit-Queue: Christoph Schwering <schwering@google.com> Cr-Commit-Position: refs/heads/main@{#1427183}
Chrome
This directory contains the open source, application layer of Google Chrome.
Unlike other parts of Chromium like //content, which provide framework intended to support multiple products, this directory contains code that is focused on building specific products with opinionated UX.
Specific products include:
- Chrome desktop browser for Chrome OS, Windows, Mac and Linux
- Chrome mobile browser for Android
- Chrome OS system UI
See //ios/chrome for the Chrome mobile browser for iOS, and note that code that is shared between //chrome and //ios/chrome is typically factored out into //components.