commit | ced90784974df27ddb5b55aba1891de7b0f2b086 | [log] [tgz] |
---|---|---|
author | Alexei Svitkine <asvitkine@chromium.org> | Thu Feb 22 22:57:57 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 22 22:57:57 2024 |
tree | 68352b9536dfd0fbeb41f7ef97e3419153e29987 | |
parent | 741cc0a05aa1f52fad53d8923576bcd246c7e19a [diff] |
Fix use of recordEnumerationValue() in NTP code. This API requires passing MAX_VALUE + 1, as the last param, as the semantics are the same as the C++ API UmaHistogramExactLinear(). One place was missing the + 1, while two other call sites were passing Object.keys(MyEnum).length, which is incorrect in TS (see: https://stackoverflow.com/questions/38034673/determine-the-number-of-enum-elements-typescript). Bug: b/325539421 Change-Id: Ic3cccdcc5020b5c75c133e51f17da59d4aa79da5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5319610 Commit-Queue: Paul Adedeji <pauladedeji@google.com> Commit-Queue: Alexei Svitkine <asvitkine@chromium.org> Reviewed-by: Paul Adedeji <pauladedeji@google.com> Cr-Commit-Position: refs/heads/main@{#1264288}
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.