commit | 2d81ad65f095d536a0db9734500426aa3213dc21 | [log] [tgz] |
---|---|---|
author | Erik Jensen <rkjnsn@google.com> | Wed Jul 03 20:24:48 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 03 20:24:48 2024 |
tree | ab1d56156a422b8307b1c1d53154a005702e91bf | |
parent | be30e2ccb6199bb2f54fd1ccd32559268cb0aac1 [diff] |
Use a weak pointer in Mac file chooser completion handler While this isn't necessary today, since the handler is always invoked in the destructor if it hasn't been previously, using a weak pointer ensures that any future change in behavior of NSOpenPanel's cancel method can't result in use-after-free. Bug: 347409963 Change-Id: I64a5a6f16e9e4d505ef5dcd7ff2e71a54252ae6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5673516 Commit-Queue: Erik Jensen <rkjnsn@chromium.org> Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org> Auto-Submit: Erik Jensen <rkjnsn@chromium.org> Cr-Commit-Position: refs/heads/main@{#1322997}
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.