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

Unified Diff: ui/file_manager/video_player/js/cast/cast_video_element.js

Issue 760853003: Adds histograms for casting feature of Video Player (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed the comments by isherman Created 6 years 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 | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/video_player/js/cast/caster.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/video_player/js/cast/cast_video_element.js
diff --git a/ui/file_manager/video_player/js/cast/cast_video_element.js b/ui/file_manager/video_player/js/cast/cast_video_element.js
index a2ffb3904438a2246531ab8e510810771b2bd78a..8a19ad03e8fac8afb4a107617af28963277f4772 100644
--- a/ui/file_manager/video_player/js/cast/cast_video_element.js
+++ b/ui/file_manager/video_player/js/cast/cast_video_element.js
@@ -486,6 +486,8 @@ CastVideoElement.prototype = {
}
if (this.currentMediaDuration_ !== media.media.duration) {
+ metrics.recordCastedVideoLength(this.currentMediaDuration_);
+
this.currentMediaDuration_ = media.media.duration;
this.dispatchEvent(new Event('durationchange'));
}
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/file_manager/video_player/js/cast/caster.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698