commit | 21d39304c44aeabb6b784c1f0b4e8d553ad05026 | [log] [tgz] |
---|---|---|
author | Bo Majewski <majewski@chromium.org> | Wed Jun 28 06:09:40 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 28 06:09:40 2023 |
tree | 93b9a7bcb49051f5ee571aeab85fa0323ee59c28 | |
parent | 5d97a5520066f525b590e117f786363028a4e990 [diff] |
[Files]: Fix UMAs collection for pure JS approach. When using makeReadEntriesRecursivelyPromise_ we may call the resolve in the "error" handling branch. This is due to the fact that util.readEntriesRecursively does not distinguish between true error condition and the case when we have enough entries. We detect that condition by checking if there are some entries collected and the scanning has not been cancelled. However, that branch was missing a call to recordInterval. Which means that if we use JS code to search for files and we find more than maxResults, we were not recording any UMAs. This CL fixes that situation. Bug: b:288183953 Change-Id: I51a3d18afe28ec2dceab4863cc1096863c0bd473 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4648733 Commit-Queue: Bo Majewski <majewski@chromium.org> Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/main@{#1163399}
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.