From 990f2963e10936670ced8bfcfd2ff3d3fd5b4c5d Mon Sep 17 00:00:00 2001 From: Kaku Kuo Date: Wed, 29 Mar 2017 10:42:48 +0800 Subject: [PATCH] Bug 1351527 - Label runnables in dom/media/webaudio/MediaBufferDecoder.cpp; r=jwwang MozReview-Commit-ID: LbuwnrGCXah --HG-- extra : rebase_source : 66418e5d78799230a6ae9d731f65da0c6038e328 --- dom/media/webaudio/MediaBufferDecoder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/media/webaudio/MediaBufferDecoder.cpp b/dom/media/webaudio/MediaBufferDecoder.cpp index 708f9a3f527f..7aa333751204 100644 --- a/dom/media/webaudio/MediaBufferDecoder.cpp +++ b/dom/media/webaudio/MediaBufferDecoder.cpp @@ -291,8 +291,9 @@ MediaDecodeTask::OnMetadataRead(MetadataHolder* aMetadata) ("Telemetry (WebAudio) MEDIA_CODEC_USED= '%s'", codec.get())); Telemetry::Accumulate(Telemetry::HistogramID::MEDIA_CODEC_USED, codec); }); - // Non-DocGroup version of AbstractThread::MainThread is fine for Telemetry. - AbstractThread::MainThread()->Dispatch(task.forget()); + SystemGroup::Dispatch("MediaDecodeTask::OnMetadataRead()::report_telemetry", + TaskCategory::Other, + task.forget()); RequestSample(); }