From e75c5f271d768802369b364f47fb64a8c4d5372d Mon Sep 17 00:00:00 2001 From: jasonroberts Date: Tue, 24 May 2016 11:58:49 -0700 Subject: [PATCH] [Chromecast] Log pipeline error code for error metric. BUG=internal b/26496758 Review-Url: https://codereview.chromium.org/2009583002 Cr-Commit-Position: refs/heads/master@{#395658} --- chromecast/media/cma/pipeline/media_pipeline_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromecast/media/cma/pipeline/media_pipeline_impl.cc b/chromecast/media/cma/pipeline/media_pipeline_impl.cc index b33305313ece6..68fcaa72e67c5 100644 --- a/chromecast/media/cma/pipeline/media_pipeline_impl.cc +++ b/chromecast/media/cma/pipeline/media_pipeline_impl.cc @@ -504,8 +504,8 @@ void MediaPipelineImpl::OnError(::media::PipelineStatus error) { DCHECK(thread_checker_.CalledOnValidThread()); DCHECK_NE(error, ::media::PIPELINE_OK) << "PIPELINE_OK is not an error!"; - metrics::CastMetricsHelper::GetInstance()->RecordApplicationEvent( - "Cast.Platform.Error"); + metrics::CastMetricsHelper::GetInstance()->RecordApplicationEventWithValue( + "Cast.Platform.Error", error); if (!client_.error_cb.is_null()) client_.error_cb.Run(error);