commit | f6b23b582e63589f0cc9b121ab10b5d4c01cb7cb | [log] [tgz] |
---|---|---|
author | Alex Newcomer <newcomer@chromium.org> | Thu Nov 04 00:44:32 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 04 00:44:32 2021 |
tree | 73f4e09801e7f77d7ad08689a24dadc63b834d47 | |
parent | c4780653d5073047aa7ef90d837b0dac278cf6b0 [diff] |
Use WeakPtr to prevent using the ptr out of scope When switching to AnimationBuilder, we passed a callback instead of using the old ImplicitAnimationObserver pattern. ImplicitAnimationObserver removes itself on its dtor. Meanwhile AnimationBuilder has a dangling ptr. Using a WeakPtr should fix this crash (but I cannot repro it, so this fix is technically speculative). Bug: 1265741 Change-Id: I234621cfd780c93b47c1a11aa67945075f2e9632 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3260120 Reviewed-by: Peter Kasting <pkasting@chromium.org> Commit-Queue: Alex Newcomer <newcomer@chromium.org> Cr-Commit-Position: refs/heads/main@{#938078}
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.