Omnibox UI Refresh: Fix rounded favicons in suggestions.
Favicons for suggestions have been getting incorrectly rounded. This led to a discrepency in how they appeared on the tab and location-bar vs. the Omnibox suggestions. This CL does a few things: 1) Changes the icon_view_ member of OmniboxMatchCellView from the OmniboxImageView class (which rounds corners) to a plain ImageView. This fixes the heart of the bug. 2) Renames OmniboxImageView => RoundedCornerImageView, to make things more explicit. 3) Renames image_view_ to answer_image_view_ to make things more explicit. Also updates the comment to clarify that it's used for all suggestion answers, not just rich entities. As a followup, we should investigate eliminating / refactoring RoundedCornerImageView, as it appears (in the code) to apply the entity image corner radius to all answers-in-suggest images. But that's a less noticeable and separate concern. Bug: 866187 Change-Id: Ib35528e109d484dfca6013569c6cd52f71a8f6ae Reviewed-on: https://chromium-review.googlesource.com/1147503Reviewed-by:Dave Schuyler <dschuyler@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#578129}
Showing
Please register or sign in to comment