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

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

Issue 1825633002: Adds UMA histograms for desktop tab and audio capture through (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 8e84fdd8441db69efeec858ea857c51bc2490173..de1cc9917f5284f65e4011f96d6ccb88d366e654 100644
--- a/content/browser/renderer_host/media/video_capture_manager.cc
+++ b/content/browser/renderer_host/media/video_capture_manager.cc
@@ -495,7 +495,8 @@ VideoCaptureManager::DoStartTabCaptureOnDeviceThread(
DCHECK(IsOnDeviceThread());
scoped_ptr<media::VideoCaptureDevice> video_capture_device;
- video_capture_device.reset(WebContentsVideoCaptureDevice::Create(id));
+ video_capture_device.reset(WebContentsVideoCaptureDevice::Create(
+ id, WebContentsVideoCaptureDevice::CHROME_TAB_CAPTURE));
if (!video_capture_device) {
device_client->OnError(FROM_HERE, "Could not create capture device");
@@ -523,7 +524,8 @@ VideoCaptureManager::DoStartDesktopCaptureOnDeviceThread(
}
if (desktop_id.type == DesktopMediaID::TYPE_WEB_CONTENTS) {
- video_capture_device.reset(WebContentsVideoCaptureDevice::Create(id));
+ video_capture_device.reset(WebContentsVideoCaptureDevice::Create(
+ id, WebContentsVideoCaptureDevice::CHROME_CHOOSE_DESKTOP_MEDIA));
} else {
#if defined(USE_AURA)
video_capture_device = DesktopCaptureDeviceAura::Create(desktop_id);

Powered by Google App Engine
This is Rietveld 408576698