
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}
This directory contains UI frameworks used to build various user interface features. This directory is not intended to contain UI features (such as a keyboard).