[composebox] Fix azm param and typed suggest for images. 2 problems: 1) ZPS was showing when you type text with an image present. It should not since we do not support any contextual typed suggestions. However, autocomplete should still be getting queried to make sure we are getting the verbatim match. Before: screencast/cast/NTg1NTQ0NDA0NzIzMzAyNHwwMjBkZDYwMy00Ng After: screencast/cast/NjI4MDUxNTU1MTIzMjAwMHwzODliODI4ZS01ZA 2) When in create image mode, if an image is uploaded, it should use `azm=7` to get canned create image suggestions that are relevant. It should use `azm=4` with no image present, which is also wrong (right now we send `azm=2`. Update the browser side tool mode value when images are added/removed. To solve this, we also have to stop appending lens params in this tool mode or else the contextual client will be used (instead of chrome-compose which gives us canned suggestions). Before: screencast/cast/NjQwNDUwNDU0NjE4MTEyMHxjOTZhNTRmNS0wMA After: screencast/cast/NTY4Nzk0NTY5MTM5ODE0NHwzODQxMGM3NC0zZA Change-Id: I70aa521222d40201f5e9db9f2f075f4934f34ffe Bug: b:448447566, b:452684143 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7042122 Reviewed-by: Marlon Facey <mfacey@chromium.org> Reviewed-by: Tommy Nyquist <nyquist@chromium.org> Commit-Queue: Nihar Majmudar <niharm@google.com> Reviewed-by: Alex Gough <ajgo@chromium.org> Reviewed-by: Ananya Seelam <ananyaseelam@google.com> Cr-Commit-Position: refs/heads/main@{#1531630}
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.