Bug 1345034 - Label runnables in dom/media/WMFMediaDataDecoder.cpp; r=jwwang

MozReview-Commit-ID: G5ioUsJdvQd

--HG--
extra : rebase_source : db5f8d082fa6fff57ab4eb3fc85492dbc6939d9c
This commit is contained in:
Kaku Kuo 2017-03-07 15:26:08 +08:00
parent af68450f5b
commit 24b9d982ba

View File

@ -65,7 +65,10 @@ SendTelemetry(unsigned long hr)
[sample] {
Telemetry::Accumulate(Telemetry::MEDIA_WMF_DECODE_ERROR, sample);
});
NS_DispatchToMainThread(runnable);
SystemGroup::Dispatch("WMFMediaDataDecoder::SendTelemetry",
TaskCategory::Other,
runnable.forget());
}
RefPtr<ShutdownPromise>