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

Unified Diff: content/browser/renderer_host/media/video_capture_manager.cc

Issue 2363003003: Add UMA Metrics For Desktop Share With Audio (Closed)
Patch Set: Include Created 4 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
Index: content/browser/renderer_host/media/video_capture_manager.cc
diff --git a/content/browser/renderer_host/media/video_capture_manager.cc b/content/browser/renderer_host/media/video_capture_manager.cc
index 371e26b0c654e3c54b22d6ef9ac10e5e796de15e..8580098842f25be6bd2a916fd97d0d9a60b801a9 100644
--- a/content/browser/renderer_host/media/video_capture_manager.cc
+++ b/content/browser/renderer_host/media/video_capture_manager.cc
@@ -620,6 +620,11 @@ VideoCaptureManager::DoStartDesktopCaptureOnDeviceThread(
if (desktop_id.type == DesktopMediaID::TYPE_WEB_CONTENTS) {
video_capture_device.reset(WebContentsVideoCaptureDevice::Create(id));
IncrementDesktopCaptureCounter(TAB_VIDEO_CAPTURER_CREATED);
+ if (desktop_id.audio_share) {
+ IncrementDesktopCaptureCounter(TAB_VIDEO_CAPTURER_CREATED_WITH_AUDIO);
+ } else {
+ IncrementDesktopCaptureCounter(TAB_VIDEO_CAPTURER_CREATED_WITHOUT_AUDIO);
+ }
} else {
#if defined(USE_AURA)
video_capture_device = DesktopCaptureDeviceAura::Create(desktop_id);
« no previous file with comments | « content/browser/media/capture/desktop_capture_device_uma_types.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698