forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[omnibox] [rich-autocompletion] Fix shortcut provider fill_into_edit
When rich autocompleting titles, |fill_into_edit| & |fill_into_edit_additional_text| are swapped (i.e. the former contains the title, and the latter contains the URL). This is consistent with how the suggestion should be displayed. But the shortcut DB must persist the original (i.e. URL) |fill_into_edit|; otherwise the shortcut provider may autocomplete the title even when title autocompletion is inappropriate (e.g. because the input is too short). Therefore, |swapped_fill_into_edit| is set to true when rich autocompleting titles. Bug: 1062446 Change-Id: I925752e60d2529d0fd8f9fac7f51aea169bc678d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2399567 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#805176}
- Loading branch information
manukh
authored and
Commit Bot
committed
Sep 9, 2020
1 parent
6596244
commit c534089
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters