commit | 9950b060870677c81d1d5305120ca04ab5b97546 | [log] [tgz] |
---|---|---|
author | Orr Bernstein <orrb@google.com> | Fri Aug 09 20:24:20 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 09 20:24:20 2024 |
tree | bf3f34b2177ae651aec06a9a3fa36a11cc52635c | |
parent | 177d0d55b850aca5d8876e45d7d877c068569027 [diff] |
Fix dangling pointer crash when process is ready after auction ends. In a previous change - https://chromium-review.googlesource.com/c/chromium/src/+/5740146 - we added a metric that measures the start/end time of a phase of the Protected Audience auction in which the auction waited for worklet creation. To correctly capture this phase, we instrumented the AuctionWorkletManager to report when the processes backing the worklets became available. However, because of an incorrect use of base::Unretained, the callback indicating that the process was available could be called after the AuctionWorkletManager had already been cleaned up following the end of the auction. This change replaces the base::Unretained with a weak pointer provided by the existing weak_ptr_factory_. Bug: 348443991 Fixed: 357555097 Change-Id: Ic8b7d296b42cdeffd0412220c5b47b8e0f13dd9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5762309 Reviewed-by: Maks Orlovich <morlovich@chromium.org> Commit-Queue: Orr Bernstein <orrb@google.com> Cr-Commit-Position: refs/heads/main@{#1339837}
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.