commit | 6b9fb62ad4bbf7a516e5cf99ccd367a6d4c19b82 | [log] [tgz] |
---|---|---|
author | Pu Shi <pushi@google.com> | Fri Apr 22 19:00:20 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Apr 22 19:00:20 2022 |
tree | c668ac56603eafdceef060e27d91d4c48f844a4a | |
parent | 73ee5b16939b97ad8e9ddc36269c4277aa9b54a0 [diff] |
[Nearby] Fix crash caused by base::Unretained during shutdown In the ScheduledExecutor class the use of base::Unretained(this) in a callback caused a crash during the shutdown process when the object has been destroyed. Replacing them with weak pointers will make sure the callback will not run if the object has been destroyed. Bug:1316846 TEST = manually tested and passed unit tests Change-Id: Ia1df0fe5f4d190ce247eb3a38b3983d54a245855 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3600852 Reviewed-by: Josh Nohle <nohle@chromium.org> Commit-Queue: Pu Shi <pushi@google.com> Cr-Commit-Position: refs/heads/main@{#995295}
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.