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

Unified Diff: media/blink/webmediaplayer_util.cc

Issue 1924743008: media: Report RAPPOR for media pipeline errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 years, 8 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 | « media/blink/webmediaplayer_util.h ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_util.cc
diff --git a/media/blink/webmediaplayer_util.cc b/media/blink/webmediaplayer_util.cc
index 981cba22c7ace321729a2d748eb161842e324a04..297ff6827f975a310d22c6943822841d9a632e86 100644
--- a/media/blink/webmediaplayer_util.cc
+++ b/media/blink/webmediaplayer_util.cc
@@ -139,6 +139,20 @@ void ReportMetrics(blink::WebMediaPlayer::LoadType load_type,
}
}
+void ReportPipelineError(blink::WebMediaPlayer::LoadType load_type,
+ const blink::WebSecurityOrigin& security_origin,
+ PipelineStatus error) {
+ DCHECK_NE(PIPELINE_OK, error);
+
+ // Report the origin from where the media player is created.
+ if (!GetMediaClient())
+ return;
+
+ GetMediaClient()->RecordRapporURL(
+ "Media.OriginUrl." + LoadTypeToString(load_type) + "PipelineError",
+ blink::WebStringToGURL(security_origin.toString()));
Ilya Sherman 2016/04/29 20:25:30 Hmm, would it make sense to just have a single met
+}
+
void RecordOriginOfHLSPlayback(const GURL& origin_url) {
if (media::GetMediaClient())
GetMediaClient()->RecordRapporURL("Media.OriginUrl.HLS", origin_url);
« no previous file with comments | « media/blink/webmediaplayer_util.h ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698