[VL] Add histogram to track addition of 404 VisitRows The histogram will be used to monitor the proportion of VisitRow additions that are for 404 visits, after enabling the saving of 404 visits to the History DB. The histogram is emitted via macro rather than the corresponding function because AddPageVisit() is called in a loop for redirects, and tools/metrics/histograms/README.md says: "when recording metrics on the critical path (e.g. called in a loop or logged multiple times per second), use the macros in histogram_macros.h instead [of the histogram functions]." This CL is part of a larger project to make links `:visited` after a 404 visit. Project links: - Google-internal project doc: go/stop-filtering-history-by-status-code - Issue tree / work status: https://crbug.com/427225439/dependencies Fixed: 445899720 Change-Id: If0eae711cd3d67e0afe0e9c9f9c8141aaac6ba0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6976394 Reviewed-by: manuk hovanesian <manukh@chromium.org> Commit-Queue: Svend Larsen <svend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1521560}
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.