commit | fcef29e7b21888b7e20a861adbaa1a644ebbd0bc | [log] [tgz] |
---|---|---|
author | Vladimir Nechaev <nechaev@chromium.org> | Fri Feb 16 12:13:36 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 16 12:13:36 2024 |
tree | 21b25234e5cb50121265a3bcdd86ab351a332f57 | |
parent | 9605909e078b260d87a610bc67669d7e9d6dc079 [diff] |
Eliminate unsafe casts in ChromeImpl Static casts from the base class to the derived class with the following access to the derived class members can lead to undefined behavior if the referred object does not belong to the target type. This commit improves ChromeDriver code health by eliminating such casts from the ChromeImpl class. Bug: chromedriver:4702 Change-Id: Id6e624fdf750a8c0105dac3add9f9f78b9ce6222 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5277062 Auto-Submit: Vladimir Nechaev <nechaev@chromium.org> Reviewed-by: Maksim Sadym <sadym@chromium.org> Commit-Queue: Maksim Sadym <sadym@chromium.org> Cr-Commit-Position: refs/heads/main@{#1261581}
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.