Skip to content

Commit

Permalink
[Chromecast] Log pipeline error code for error metric.
Browse files Browse the repository at this point in the history
BUG=internal b/26496758

Review-Url: https://codereview.chromium.org/2009583002
Cr-Commit-Position: refs/heads/master@{#395658}
  • Loading branch information
jasonroberts authored and Commit bot committed May 24, 2016
1 parent af1b99e commit e75c5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chromecast/media/cma/pipeline/media_pipeline_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e75c5f2

Please sign in to comment.