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

Unified Diff: content/browser/media/capture/desktop_capture_device.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
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/desktop_capture_device.cc
diff --git a/content/browser/media/capture/desktop_capture_device.cc b/content/browser/media/capture/desktop_capture_device.cc
index 1ae61c948b33bf280087b878aef176288f039bd8..cde383dc50a22e7be98530e6f35b396a50029130 100644
--- a/content/browser/media/capture/desktop_capture_device.cc
+++ b/content/browser/media/capture/desktop_capture_device.cc
@@ -380,6 +380,13 @@ std::unique_ptr<media::VideoCaptureDevice> DesktopCaptureDevice::Create(
webrtc::MouseCursorMonitor::CreateForScreen(options,
source.id)));
IncrementDesktopCaptureCounter(SCREEN_CAPTURER_CREATED);
+ if (source.audio_share) {
+ IncrementDesktopCaptureCounter(
+ SCREEN_CAPTURER_CREATED_WITH_AUDIO);
+ } else {
+ IncrementDesktopCaptureCounter(
+ SCREEN_CAPTURER_CREATED_WITHOUT_AUDIO);
+ }
}
break;
}
« no previous file with comments | « no previous file | content/browser/media/capture/desktop_capture_device_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698