Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Create new on-install incremented histograms that check
that the profile can use non-component extensions before emitting. This change is limited to installed_loader.cc (RecordExtensionsMetrics() and LoadAllExtensions()), but there are other stragglers in other files that will be addressed in a follow-up CL. This is a mix of histograms in various states, below is the state and the intended outcome: * >1 month expired histograms: delete the previous histogram (because it is no longer being recorded) and replace with the incremented version. * <1 month expired histograms: extend the previous histograms `expires_after` date (so we can compare data) and create the incremented version. * >1 month valid histograms: expire the previous histograms in a couple months (so they will be cleaned up automatically) and create the incremented version. The unittest tests a subset of the incremented histograms, as the effort/complexity in generating a test extension that exercises all the code lines might not have value and would make the test brittle. Bug: 1383740,1284659 Change-Id: I205f0e5a21fbe0b71abcd049a59c67b8ca776158 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4122980 Auto-Submit: Justin Lulejian <jlulejian@chromium.org> Commit-Queue: Justin Lulejian <jlulejian@chromium.org> Reviewed-by: David Bertoni <dbertoni@chromium.org> Reviewed-by: Mark Pearson <mpearson@chromium.org> Cr-Commit-Position: refs/heads/main@{#1100691}
- Loading branch information