commit | d7916252193b76195e78d5274a0f27fad79ca265 | [log] [tgz] |
---|---|---|
author | Adam Psarouthakis <psarouthakis@google.com> | Tue Sep 13 23:48:44 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 13 23:48:44 2022 |
tree | d578dab7b7ce501ba0f050ef36d20a714d58d7fe | |
parent | 7068154ce71cbc73a6d9d8bd99003d630207d74d [diff] |
Fix UploadPersistedFile file validation method The UploadPersistedFile function should validate persisted files by parsing them to the active_report. This ensures the file is a proper serialized protobuf. Instead the current behavior overwrites the active report to the persisted data, which results in one file being uploaded repeatedly. Added additional unit test to validate this change. Bug: 1360449 Change-Id: I416bfcc63036aaf53ffd63f43c7e308b1dab06cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3876327 Reviewed-by: Xinghui Lu <xinghuilu@chromium.org> Commit-Queue: Adam Psarouthakis <psarouthakis@google.com> Cr-Commit-Position: refs/heads/main@{#1046647}
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.