Backed out changeset 061a225551cb (bug 1013558) for bustage.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen
2014-06-27 09:28:27 -04:00
parent a14aa64967
commit 364d2f5acb
4 changed files with 4300 additions and 1696 deletions

View File

@@ -980,15 +980,12 @@ PendingLookup::OnStopRequestInternal(nsIRequest *aRequest,
return NS_ERROR_CANNOT_CONVERT_DATA;
}
// There are several more verdicts, but we only respect DANGEROUS and
// DANGEROUS_HOST for now and treat everything else as SAFE.
// There are several more verdicts, but we only respect one for now and treat
// everything else as SAFE.
Accumulate(mozilla::Telemetry::APPLICATION_REPUTATION_SERVER,
SERVER_RESPONSE_VALID);
switch(response.verdict()) {
case safe_browsing::ClientDownloadResponse::DANGEROUS:
case safe_browsing::ClientDownloadResponse::DANGEROUS_HOST:
*aShouldBlock = true;
break;
if (response.verdict() == safe_browsing::ClientDownloadResponse::DANGEROUS) {
*aShouldBlock = true;
}
return NS_OK;