| commit | 4b1085b25f8c89316cf968f3935f2fae090b176c | [log] [tgz] |
|---|---|---|
| author | Roger McFarlane <rogerm@chromium.org> | Tue Jun 17 22:21:49 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 17 22:21:49 2025 |
| tree | 8951a3cc233686698c5c91fa83e4a499bcdf9e06 | |
| parent | 339a0ae6c7f59c18423e55d02cb100d7d6808911 [diff] |
Add support for a visibility time window for Google Variation IDs. This allows Chrome to limit, at run-time, the sending of specific variation IDs to a given start/end time period. * Add a TimeWindow struct containing start and end base::Time fields, defaulting to base::Time::Min() and base::Time::Max(), respectively. * Add TimeWindow parameters to the AssociateGoogleVariationsID.* functions, defaulting to a default TimeWindow` instance. * Store the associated TimeWindow alongside the VariationID in the GroupToIdMap. * Return EMPTY_ID when a VariationID is queried and the current time, via base::Time::Now(), is outside of the TimeWindow for that ID. * Add unittests to associate a TimeWindow with a VariationID and to lookup a VariationID at different times relative to its 'TimeWindow`. Bug: 422445334 Change-Id: Ida0548602cb71f2e05ca0d89b13080f54c18fd19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6621979 Commit-Queue: Roger McFarlane <rogerm@chromium.org> Reviewed-by: Alexei Svitkine <asvitkine@chromium.org> Cr-Commit-Position: refs/heads/main@{#1475264}
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.