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

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

Issue 1371933005: MediaStream Recorder: add usage counter to WebRTC.webkitApiCount UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 5 years, 3 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 | content/renderer/media/webrtc_uma_histograms.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_recorder_handler.cc
diff --git a/content/renderer/media/media_recorder_handler.cc b/content/renderer/media/media_recorder_handler.cc
index d6ef60c9f080883c500f98216cf5fdfab57a9d85..6fee4603159f8f72c43ca5eeacc2fcc27d54167d 100644
--- a/content/renderer/media/media_recorder_handler.cc
+++ b/content/renderer/media/media_recorder_handler.cc
@@ -8,6 +8,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "content/renderer/media/video_track_recorder.h"
+#include "content/renderer/media/webrtc_uma_histograms.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/video_frame.h"
#include "media/capture/webm_muxer.h"
@@ -40,6 +41,10 @@ bool MediaRecorderHandler::initialize(
const blink::WebMediaStream& media_stream,
const blink::WebString& mimeType) {
DCHECK(main_render_thread_checker_.CalledOnValidThread());
+ // Save histogram data so we can see how much MediaStream Recorder is used.
+ // The histogram counts the number of calls to the JS API.
+ UpdateWebRTCMethodCount(WEBKIT_MEDIA_STREAM_RECORDER);
+
if (!canSupportMimeType(mimeType)) {
DLOG(ERROR) << "Can't support type " << mimeType.utf8();
return false;
« no previous file with comments | « no previous file | content/renderer/media/webrtc_uma_histograms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698