Fix name of the GPU video decoder while reporting to UMA.
GPU decoder's name was changed to GpuVideoDecoder several weeks back.
Updating UMA reporting to reflect the changed name.
BUG=
R=dalecurtis
Review URL: https://codereview.chromium.org/734853002
Cr-Commit-Position: refs/heads/master@{#304753}
diff --git a/content/browser/media/media_internals.cc b/content/browser/media/media_internals.cc
index 00fcac3..b16b66be6 100644
--- a/content/browser/media/media_internals.cc
+++ b/content/browser/media/media_internals.cc
@@ -17,6 +17,7 @@
#include "content/public/browser/web_ui.h"
#include "media/audio/audio_parameters.h"
#include "media/base/media_log_event.h"
+#include "media/filters/gpu_video_decoder.h"
namespace {
@@ -305,7 +306,7 @@
player_info.last_pipeline_status,
media::PIPELINE_STATUS_MAX + 1);
} else if (player_info.video_codec_name == "h264") {
- if (player_info.video_decoder == "gpu") {
+ if (player_info.video_decoder == media::GpuVideoDecoder::kDecoderName) {
UMA_HISTOGRAM_ENUMERATION("Media.PipelineStatus.AudioVideo.HW.H264",
player_info.last_pipeline_status,
media::PIPELINE_STATUS_MAX + 1);