commit | ed6adc89c7ac95204dbc2b5dfb4de7fb15f0041b | [log] [tgz] |
---|---|---|
author | Lily Chen <chlily@chromium.org> | Fri Mar 31 16:38:24 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 31 16:38:24 2023 |
tree | 87ce7c74c5abe03c0764742df4b90902acc9bdb3 | |
parent | a3f9b8897ea840055530b1466ad6b43b0143f433 [diff] |
[CodeHealth] Use StrongAlias to identify WebContents in TriggerManager This uses a base::StrongAlias for a uintptr_t to identify WebContents in TriggerManager's data collectors map, instead of a raw WebContents*. We convert TriggerManager::FinishCollectingThreatDetails() to take the new typesafe alias instead of a WebContents*, since it merely looks up the WebContents in the map. This ensures that WebContents*'s are not dereferenced while dangling. Bug: 1406821 Change-Id: I5450d604019e606b2c51cb35a2acc9da9f1c9715 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4377637 Reviewed-by: Daniel Rubery <drubery@chromium.org> Reviewed-by: Richard Coles <torne@chromium.org> Commit-Queue: Lily Chen <chlily@chromium.org> Cr-Commit-Position: refs/heads/main@{#1124775}
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.