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

Unified Diff: content/renderer/media/webmediaplayer_impl.cc

Issue 394373002: Add VideoRotation UMA Logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved logging to webmediaplayer Created 6 years, 5 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
« no previous file with comments | « no previous file | media/base/video_rotation.h » ('j') | media/base/video_rotation.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_impl.cc
diff --git a/content/renderer/media/webmediaplayer_impl.cc b/content/renderer/media/webmediaplayer_impl.cc
index a6b0fd96e7ed66b2a6f31b8691fa009709662e88..dccea32354f36909709cf5706ef07c73837b33ee 100644
--- a/content/renderer/media/webmediaplayer_impl.cc
+++ b/content/renderer/media/webmediaplayer_impl.cc
@@ -963,6 +963,9 @@ void WebMediaPlayerImpl::OnPipelineMetadata(
pipeline_metadata_ = metadata;
+ UMA_HISTOGRAM_ENUMERATION("Media.VideoRotation",
+ metadata.video_rotation,
+ media::VIDEO_ROTATION_MAX + 1);
Alexei Svitkine (slow) 2014/07/17 18:20:59 Optional nit: General convention for UMA histogra
scherkus (not reviewing) 2014/07/17 18:51:48 Us media folk decided a while back that defining _
SetReadyState(WebMediaPlayer::ReadyStateHaveMetadata);
if (hasVideo()) {
« no previous file with comments | « no previous file | media/base/video_rotation.h » ('j') | media/base/video_rotation.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698