Bug 1177013 - Telemetry for CPOW cancelation (r=dvander)

This commit is contained in:
Bill McCloskey 2015-06-30 17:12:30 -07:00
parent ffa804eb82
commit cd8523e75b
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include "mozilla/DebugOnly.h"
#include "mozilla/Move.h"
#include "mozilla/SizePrintfMacros.h"
#include "mozilla/Telemetry.h"
#include "nsDebug.h"
#include "nsISupportsImpl.h"
#include "nsContentUtils.h"
@ -2040,6 +2041,7 @@ void
CancelCPOWs()
{
if (gParentProcessBlocker) {
mozilla::Telemetry::Accumulate(mozilla::Telemetry::IPC_TRANSACTION_CANCEL, true);
gParentProcessBlocker->CancelCurrentTransaction();
}
}

View File

@ -4843,6 +4843,12 @@
"keyed" : true,
"description" : "Exceptions thrown by add-ons"
},
"IPC_TRANSACTION_CANCEL": {
"alert_emails": ["billm@mozilla.com"],
"expires_in_version": "never",
"kind": "boolean",
"description": "True when an IPC transaction is canceled"
},
"MISBEHAVING_ADDONS_CPOW_TIME_MS": {
"expires_in_version": "never",
"kind": "exponential",