Commit 7080df99 authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[Omnibox] Don't show image on single line suggestions

This Cl resets the suggestion image so that the entity image is not seen
in a non-entity result.

Bug: 839578
Change-Id: I398aee581b559dd8a59ad2d55581f5d55cbbfea5
Reviewed-on: https://chromium-review.googlesource.com/1043101Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556186}
parent e233069e
......@@ -161,9 +161,14 @@ void OmniboxMatchCellView::OnMatchUpdate(const AutocompleteMatch& match) {
!match.image_url.empty());
is_search_type_ = AutocompleteMatch::IsSearchType(match.type);
if (is_old_style_answer_ || is_rich_suggestion_) {
// Multi-line layout doesn't use the separator.
separator_view_->SetSize(gfx::Size());
} else {
// Single-line layout doesn't use the image.
image_view_->SetSize(gfx::Size());
}
if (is_rich_suggestion_) {
// All rich suggestions don't use the old (small) icon.
icon_view_->SetSize(gfx::Size());
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment