commit | 599f367d3e2124f7092ea4c7442345a41e39d767 | [log] [tgz] |
---|---|---|
author | Daniel Cheng <dcheng@chromium.org> | Fri Nov 01 23:04:24 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 23:04:24 2024 |
tree | 3f690503f5db71f9ed965451f8d6fe8cd1ee7c61 | |
parent | 39d9ac777017931a24a52b773719d011410c24f8 [diff] |
[settings] Remove base::NoDestructor use from AboutSection The arrays of SearchConcepts are static data and do not need to be stored in a std::vector. One tricky bit is that these arrays were initialized based on the result of checking a base::Feature; luckily the base::Feature has been launched for some time and the feature check can simply be removed. In addition, make a small fix to use `base::SplitStringPiece()` to avoid unnecessary allocations. The snippet in question could probably use `base::SplitStringOnce()` and avoid any allocations at all, but that is left as a potential followup. Bug: 370837212 Bug: 375364966 Change-Id: Ib894870c2d527699190e89a9d4029ec1b28bb013 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5984243 Commit-Queue: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/main@{#1377159}
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.