Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1440)

Unified Diff: media/base/audio_decoder_config.cc

Issue 148553003: Clean up histogram'd media enum max values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/audio_decoder_config.cc
diff --git a/media/base/audio_decoder_config.cc b/media/base/audio_decoder_config.cc
index dfaf94a2682aef4d534a441a2740fda829724845..4a40cb47e62d8da1965d33a8faec38d4802a3c85 100644
--- a/media/base/audio_decoder_config.cc
+++ b/media/base/audio_decoder_config.cc
@@ -50,9 +50,9 @@ void AudioDecoderConfig::Initialize(AudioCodec codec,
if (record_stats) {
UMA_HISTOGRAM_ENUMERATION("Media.AudioCodec", codec, kAudioCodecMax);
UMA_HISTOGRAM_ENUMERATION("Media.AudioSampleFormat", sample_format,
- kSampleFormatMax);
+ kSampleFormatHistogramMax);
UMA_HISTOGRAM_ENUMERATION("Media.AudioChannelLayout", channel_layout,
- CHANNEL_LAYOUT_MAX);
+ CHANNEL_LAYOUT_HISTOGRAM_MAX);
AudioSampleRate asr = media::AsAudioSampleRate(samples_per_second);
if (asr != kUnexpectedAudioSampleRate) {
UMA_HISTOGRAM_ENUMERATION("Media.AudioSamplesPerSecond", asr,

Powered by Google App Engine
This is Rietveld 408576698