Commit d9b5c680 authored by Bailey Herms's avatar Bailey Herms Committed by Chromium LUCI CQ

Added VLOG statements to client_side_detection_host.cc. These VLOG statements...

Added VLOG statements to client_side_detection_host.cc. These VLOG statements output the classification score, target digest, phash score, and emd score when phishing is detected.

Bug: b/176131789
Change-Id: Ib19f35020e6d49f2a2ed4e2a6b1a9a40bba785f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2600556Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Commit-Queue: Bailey Herms <baileyherms@google.com>
Cr-Commit-Position: refs/heads/master@{#839020}
parent dd90480c
...@@ -432,6 +432,11 @@ void ClientSideDetectionHost::PhishingDetectionDone( ...@@ -432,6 +432,11 @@ void ClientSideDetectionHost::PhishingDetectionDone(
verdict->ParseFromString(verdict_str) && verdict->ParseFromString(verdict_str) &&
verdict->IsInitialized()) { verdict->IsInitialized()) {
VLOG(2) << "Phishing classification score: " << verdict->client_score(); VLOG(2) << "Phishing classification score: " << verdict->client_score();
for (auto& match : verdict->vision_match()) {
VLOG(2) << "Target Digest: " << match.matched_target_digest();
VLOG(2) << "Phash Score: " << match.vision_matched_phash_score();
VLOG(2) << "EMD Score: " << match.vision_matched_emd_score();
}
Profile* profile = Profile* profile =
Profile::FromBrowserContext(web_contents()->GetBrowserContext()); Profile::FromBrowserContext(web_contents()->GetBrowserContext());
if (!IsExtendedReportingEnabled(*profile->GetPrefs()) && if (!IsExtendedReportingEnabled(*profile->GetPrefs()) &&
......
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