commit | a362e257655bf3690a17a4d25b1f8cb8e142f1b0 | [log] [tgz] |
---|---|---|
author | Roland Bock <rbock@google.com> | Wed Apr 10 12:26:11 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 10 12:26:11 2024 |
tree | 03a08a376886b35bd655b79f9c31a0b73253efe2 | |
parent | beabc18587381e2261c7b107c3066a0f155670ef [diff] |
Simplify invalidaton topic registration functions This CL simplifies the code to update the topics an invalidator is interested in: - Duplication detection is now expressed very closely to the description. - Dropping uninteresting topics is replaced simply with dropping all formerly interesting topics. This is much simpler and equivalent as we are always re-adding all interesting topics. The new code is also slightly more efficient as we need only one instance of ScopedDictPrefUpdate. This CL is also a step towards replacing set<TopicData> with map<Topic, TopicMetadata> as the new code will easily translate for the map. Bug: b:333354294 Change-Id: I8087e64b33505aa4e0a9de5ca4ddc7352dcd373b Tests: Existing unit tests Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5432176 Reviewed-by: Artem Sumaneev <asumaneev@google.com> Commit-Queue: Roland Bock <rbock@google.com> Cr-Commit-Position: refs/heads/main@{#1285062}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.