[omnibox] Enable AutocompleteMatch instance to select its vector icon
This CL makes vector icon selection for AutocompleteMatch instances more direct and simple by moving some of the complexity out of a static method that was increasingly requiring callers to examine fields of the instance to compose the call. By empowering instances to use available state for icon selection, it is now easy to specialize. This was done first for Drive document icons, and will also be used to differentiate Pedals. This CL only specializes one using an omnibox icon but all Pedals will get their own. Bug: 893183 Change-Id: I460c6202f1220b18091a9178f471464943190072 Reviewed-on: https://chromium-review.googlesource.com/c/1329895 Commit-Queue: Orin Jaworski <orinj@chromium.org> Reviewed-by:Christopher Grant <cjgrant@chromium.org> Reviewed-by:
Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#608144}
Showing
Please register or sign in to comment