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

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

Issue 2291893002: Let Contraints Controll Mute/Unmute Audio Local Playback For Desktop Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 2 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 380c626ba34760249828cf06abb3a42de254a9a1..de8eea8d715bbfcacf0be33802b13daa0faa4926 100644
--- a/content/browser/renderer_host/media/video_capture_manager.cc
+++ b/content/browser/renderer_host/media/video_capture_manager.cc
@@ -592,7 +592,7 @@ VideoCaptureManager::DoStartTabCaptureOnDeviceThread(
DCHECK(IsOnDeviceThread());
std::unique_ptr<VideoCaptureDevice> video_capture_device;
- video_capture_device.reset(WebContentsVideoCaptureDevice::Create(id));
+ video_capture_device = WebContentsVideoCaptureDevice::Create(id);
if (!video_capture_device) {
device_client->OnError(FROM_HERE, "Could not create capture device");
@@ -620,7 +620,7 @@ VideoCaptureManager::DoStartDesktopCaptureOnDeviceThread(
}
if (desktop_id.type == DesktopMediaID::TYPE_WEB_CONTENTS) {
- video_capture_device.reset(WebContentsVideoCaptureDevice::Create(id));
+ video_capture_device = WebContentsVideoCaptureDevice::Create(id);
IncrementDesktopCaptureCounter(TAB_VIDEO_CAPTURER_CREATED);
if (desktop_id.audio_share) {
IncrementDesktopCaptureCounter(TAB_VIDEO_CAPTURER_CREATED_WITH_AUDIO);

Powered by Google App Engine
This is Rietveld 408576698