Bug 1050141 - Add Telemetry for ApplicationReputation remote responses. r=mmc

This commit is contained in:
Gian-Carlo Pascutto 2014-08-08 09:32:44 +02:00
parent a6413e098a
commit afda080009
2 changed files with 9 additions and 1 deletions

View File

@ -987,6 +987,8 @@ PendingLookup::OnStopRequestInternal(nsIRequest *aRequest,
// DANGEROUS_HOST for now and treat everything else as SAFE.
Accumulate(mozilla::Telemetry::APPLICATION_REPUTATION_SERVER,
SERVER_RESPONSE_VALID);
Accumulate(mozilla::Telemetry::APPLICATION_REPUTATION_SERVER_RESPONSE,
response.verdict());
switch(response.verdict()) {
case safe_browsing::ClientDownloadResponse::DANGEROUS:
case safe_browsing::ClientDownloadResponse::DANGEROUS_HOST:

View File

@ -43,7 +43,13 @@
"expires_in_version": "never",
"kind": "enumerated",
"n_values": 3,
"description": "Application reputation remote status (0 = OK, 1 = FAIL, 2 = INVALID)"
"description": "Application reputation remote status (0=OK, 1=FAIL, 2=INVALID)"
},
"APPLICATION_REPUTATION_SERVER_RESPONSE": {
"expires_in_version": "never",
"kind": "enumerated",
"n_values": 5,
"description": "Application reputation remote response (0=SAFE, 1=DANGEROUS, 2=UNCOMMON, 3=POTENTIALLY_UNWANTED, 4=DANGEROUS_HOST)"
},
"APPLICATION_REPUTATION_COUNT": {
"expires_in_version": "never",