Bug 1572565 - Make the remote sandbox broker process' telemetry string consistent r=jld

Differential Revision: https://phabricator.services.mozilla.com/D41291

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gabriele Svelto 2019-08-09 00:03:33 +00:00
parent a0f2f6aebd
commit 53d4ac9807
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,9 @@ bool RemoteSandboxBrokerParent::DuplicateFromLauncher(HANDLE aLauncherHandle,
void RemoteSandboxBrokerParent::ActorDestroy(ActorDestroyReason aWhy) {
if (AbnormalShutdown == aWhy) {
Telemetry::Accumulate(Telemetry::SUBPROCESS_ABNORMAL_ABORT,
NS_LITERAL_CSTRING("sandboxbroker"), 1);
nsDependentCString(XRE_ChildProcessTypeToString(
GeckoProcessType_RemoteSandboxBroker)),
1);
if (mCrashReporter) {
mCrashReporter->GenerateCrashReport(OtherPid());
mCrashReporter = nullptr;

View File

@ -36,5 +36,5 @@ GECKO_PROCESS_TYPE(VR, "vr", VR, Self)
GECKO_PROCESS_TYPE(RDD, "rdd", RDD, Self)
// Socket process
GECKO_PROCESS_TYPE(Socket, "socket", Socket, Self)
GECKO_PROCESS_TYPE(RemoteSandboxBroker, "sandbox", RemoteSandboxBroker,
GECKO_PROCESS_TYPE(RemoteSandboxBroker, "sandboxbroker", RemoteSandboxBroker,
PluginContainer)