Commit 56b5476f authored by Toni Barzic's avatar Toni Barzic Committed by Commit Bot

app list search Properly test for empty result container score

Follow-up on CL:2106509 which changed empty container score from -1 to
0. (that CL originally had this change, but it got lost somewhere when
I was moving it to a branch for upload).

Change-Id: I31d7697770c0a400e504bff0e051b337661d1221
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153943Reviewed-by: default avatarJenny Zhang <jennyz@chromium.org>
Commit-Queue: Toni Baržić <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#760117}
parent 161f5976
...@@ -338,7 +338,7 @@ void SearchResultPageView::ReorderSearchResultContainers() { ...@@ -338,7 +338,7 @@ void SearchResultPageView::ReorderSearchResultContainers() {
if (i > 0) { if (i > 0) {
HorizontalSeparator* separator = separators_[i - 1]; HorizontalSeparator* separator = separators_[i - 1];
// Hides the separator above the container that has no results. // Hides the separator above the container that has no results.
if (!view->container_score()) if (!view->num_results())
separator->SetVisible(false); separator->SetVisible(false);
else else
separator->SetVisible(true); separator->SetVisible(true);
......
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