Reland "Support key up/down to move through query history."
This is a reland of 2a5578c2 Fix the build failure in https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/linux-chromeos-dbg/9034 Add ASH_EXPORT on AssistantQueryHistory because it is included in ash_unittests, or else build with is_debug = true fails. Original change's description: > Support key up/down to move through query history. > > We follow the behavior of linux shell: > (1) Whenever there is a new query, the iterator is reset to the new > query. > (2) Prev of the iterator moves till the first query and stick there. > (3) Next of the iterator can move beyond last query and get an empty > query. > > > Bug: b:119504796 > Change-Id: Iee1247359df78b8e2189fa86c3bd1b8b6ebfe612 > Reviewed-on: https://chromium-review.googlesource.com/c/1334271 > Commit-Queue: Yilei Li <yileili@google.com> > Reviewed-by: Tao Wu <wutao@chromium.org> > Cr-Commit-Position: refs/heads/master@{#609888} Bug: b:119504796 Change-Id: I445b022caef9e82272a07c3a8949e1decc4aaeff Reviewed-on: https://chromium-review.googlesource.com/c/1345811Reviewed-by:Tao Wu <wutao@chromium.org> Commit-Queue: Yilei Li <yileili@google.com> Cr-Commit-Position: refs/heads/master@{#610951}
Showing
Please register or sign in to comment