Commit 1d713d28 authored by tby's avatar tby Committed by Commit Bot

[Files ranking] Add additional VLOGs for debugging.

Bug: 1011221
Change-Id: Ifa69d148a1a0e9080589554ccbe4f76817710ec3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1909058Reviewed-by: default avatarThanh Nguyen <thanhdng@chromium.org>
Commit-Queue: Tony Yeoman <tby@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714304}
parent 36938a48
......@@ -585,12 +585,26 @@ void SearchResultRanker::OverrideZeroStateResults(
if (candidate_override_index == -1)
continue;
// TODO(crbug.com/1011221): Remove once the bug re. zero-state drive files
// not being shown is resolved.
VLOG(1) << "Zero state files override: newtype=" << static_cast<int>(group)
<< " newpos=" << next_modifiable_index;
// Override the result at |next_modifiable_index| with
// |candidate_override_index| by swapping their scores.
std::swap(result_ptrs[candidate_override_index]->score,
result_ptrs[next_modifiable_index]->score);
--next_modifiable_index;
}
// TODO(crbug.com/1011221): Remove once the bug re. zero-state drive files not
// being shown is resolved.
VLOG(1) << "Zero state files setting result scores";
for (const auto* result : result_ptrs) {
VLOG(1) << "Zero state files result score: type="
<< static_cast<int>(
RankingItemTypeFromSearchResult(*(result->result)))
<< " score=" << result->score;
}
}
void SearchResultRanker::OnFilesOpened(
......
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