commit | 86f5fef34e654ca50e249aea7ec079cc22729b8c | [log] [tgz] |
---|---|---|
author | Tom Sepez <tsepez@chromium.org> | Fri Jun 02 15:28:46 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 02 15:28:46 2023 |
tree | cf2ffd55255dbfde6dbc7c367b7258e089a7451e | |
parent | 0f3774fadad453e6733afe58d067d294ca570544 [diff] |
Prevent dangling ptr warnings when using MockWebWrapper The expected javascript result associated with a MockWebWrapper, as specified via SetMockJavaScriptResult(), must outlive the wraper. We can enforce this requirement by removing mutablity as provided by that method, and require the result to exist at time of construction. -- add some missing 'const' while at it. Bug: 1401495 Change-Id: I4f62835a4a90fbdd4f027883575f1d9aa99806c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4579576 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1152547}
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.