| commit | db43c384d4a557bdb5eece7155e5888e4f1322bf | [log] [tgz] |
|---|---|---|
| author | Lei Zhang <thestig@chromium.org> | Thu Oct 02 20:05:36 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Oct 02 20:05:36 2025 |
| tree | 63fa29362ccbef97c4a6311c8d1162756906fd74 | |
| parent | 2791d8e13491c4a3dac12efd517a459b7c2f25ee [diff] |
Move test-only OmniboxEditModel method into TestOmniboxEditModel OmniboxEditModel has a GetPopupRichSuggestionBitmap() method that is only used in tests. Since it only gets called for TestOmniboxEditModel instances, make it part of TestOmniboxEditModel instead. Then this code is guaranteed to not ship in production binaries. Also rename it to GetPopupRichSuggestionBitmapForKeyword() to help differentiate it from other GetPopupRichSuggestionBitmap() overloads, and fix some nits along the way. Change-Id: I76fc32e5e7abf84a23bd76592cd0b5eea1a387d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6986069 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Alex Chen <alexwchen@chromium.org> Cr-Commit-Position: refs/heads/main@{#1524405}
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.