
Lens suggest inputs are an async process, that require a handshake with the server. If the ContextualSearchProvider makes the suggest request before the inputs are ready, the request will fail. To fix this, the ContextualSearchProvider will now wait for the suggest inputs asynchronously, and issue the suggest request when they are ready. This CL also must change the autocomplete controller to allow the CSP to provide suggestions after done, since the suggest inputs might take longer than the request. Note: Other flows the use Lens suggest inputs still grab them synchronously, and were not included in this CL in favor of a longer term rework. Bug: 408227398 Change-Id: I620e40e3e47d4236438216ccc322a7e59d849fce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6435196 Reviewed-by: Orin Jaworski <orinj@chromium.org> Reviewed-by: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by: Sergio Collazos <sczs@chromium.org> Commit-Queue: Duncan Mercer <mercerd@google.com> Cr-Commit-Position: refs/heads/main@{#1444445}
This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.