[omnibox]: Cache doc suggestions' formatting.
1) The drive server may intermittently provide a particular suggestion while typing. E.g. the input 'fluffy' may suggest a doc titled 'fluffy kitten', while the input 'fluffy k' may not. 2) Drive suggests return asynchronously. As a consequence of the above 2, when the drive server and bookmark or history providers suggest the same document, the suggestion displayed flickers between the preferred drive format (e.g. 'title - date - doc_type') and the typical URL format (e.g. 'title - url'). This CL caches the 20 most recent drive suggestions to alleviate the issue. Cached suggestions are scored 0 to avoid affecting the autocomplete results displayed and their rankings. I.e., this CL is cosmetic. Bug: 941548 Change-Id: I8498642b89db463c968c66e3f2181da83e7b623f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576177 Commit-Queue: manuk hovanesian <manukh@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#682892}
Showing
Please register or sign in to comment