commit | 430c115913a44b2b86b4a0b0e627c8e51ffe3945 | [log] [tgz] |
---|---|---|
author | Sahir Vellani <sahir.vellani@microsoft.com> | Tue Mar 18 17:58:19 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 18 17:58:19 2025 |
tree | 72cba54ede12f81c6b71d75424037d95ec2d5f19 | |
parent | e0b11b67b09cb1740379dbcf1819aa8078a31ee6 [diff] |
Maintain a NoDestructor instance of ChildWindowThread A ChildWindowWin can be initialized on the VizCompositor thread or GPUMain thread. This results in a DCHECK enforcing that the window only be initialized the same thread due to the dereferencing of a WeakPtr. This problem can be solved by eliminating the usage of a WeakPtr alltogether and instead returning a singleton instance that is initialized using base::NoDestructor. The ChildWindowThread uses a task runner so operations on the thread should already be thread safe. Bug: 399387403 Change-Id: Ic4d940988d763f03344e547091c4e07c185affcc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6334063 Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1434257}
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.