[omnibox] Pass provider-populated subtype_identifier into the aqs= param
Currently, we don't pass the provider-populated (generally server-provided) subtype_identifier field into the aqs= CGI parameter. We just statically make one in the AutocompleteController AutocompleteMatchToAssistedQuery static method. This more or less works, but in our ideal system, we would have these qualities: 1. We decentralize this provider-specific logic into the providers themselves, rather than having a centralized switch statement that handles all these per-provider cases. 2. If the server passes us some special subtype_identifier, we can pass it along in our aqs= parameter without updating the Chrome binary. This CL makes AutocompleteMatchToAssistedQuery start with the provider-populated integer. It also adds a test. Ideally in the future, all of the logic within that static method could be migrated into the individual provider classes. Bug: 1064327 Change-Id: I8b56a6623f61520218f2f4001787171c300fb192 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2118221Reviewed-by:Justin Donnelly <jdonnelly@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#754651}
Showing
Please register or sign in to comment