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
Родитель 8e7d98d6d0
Коммит 2ebfe39884
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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:

Просмотреть файл

@ -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",