зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1050141 - Add Telemetry for ApplicationReputation remote responses. r=mmc
This commit is contained in:
Родитель
8e7d98d6d0
Коммит
2ebfe39884
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче