commit | 0e0fe0ad2b6ec2c32e96d15b51fdee949c726e83 | [log] [tgz] |
---|---|---|
author | Daniel Cheng <dcheng@chromium.org> | Wed Apr 27 08:40:34 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Apr 27 08:40:34 2022 |
tree | ceed8f47c124ca2036397fc8619df33829b71c5f | |
parent | 479e8ea53aa400c86d870c435ef14fc0ecff9369 [diff] |
Remove use of "generic" MojoUnion::New() helper in //chrome/services/sharing/nearby The New() method for unions has a generic-sounding name but actually creates a union containing the first declared subtype. In general, this behavior is non-intuitive; it can even give the impression that it creates an empty union that doesn't contain any of its subtypes. It is also inefficient: many uses of the New() method immediately populate a different subtype, so the initial allocation to hold the first declared subtype is simply allocator churn. For these reasons, usage of MojoUnion::New() is being phased out and removed. This CL was uploaded by git cl split. R=hansberry@chromium.org Bug: 1261169 Change-Id: Ia704de42074bed4d33c7b6de345f1e9c616cb18e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3601888 Reviewed-by: Ryan Hansberry <hansberry@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#996589}
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.