commit | 7d17c0fe0e0a046128e484173b79f0fb7768c293 | [log] [tgz] |
---|---|---|
author | Matthew Denton <mpdenton@chromium.org> | Fri Jun 14 17:51:58 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 14 17:51:58 2024 |
tree | cd1b7cab646bbcf4f88568cd8889d81a2bc3a68d | |
parent | be3e91a13344c87b7ffab058b5264dd3903333d6 [diff] |
Fix MojoLPM generation for move_only nullable types used as map values MojoLPM functions generate ToProto functions to convert mojo C++ types used in a mojom file as a map value, to the corresponding protobuf *_MapValue. However if the value type was both move_only and nullable, the generated ToProto just tried to move from the value rather than checking for null and unwrapping the C++ type from std::optional, resulting in broken autogenerated code. That is fixed in this CL. This came up in https://chromium-review.googlesource.com/c/chromium/src/+/5608336. Bug: 346598548 Change-Id: Ie85d6661b7ec600ce01bc85cfe237d269955bc9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5629580 Commit-Queue: Matthew Denton <mpdenton@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1315328}
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.