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

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: Rebase 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 28040d8ca096862e0ffb0fd262499dd58e371186..2e55d0d15461c20eba89d6609f28d93886feb538 100644
--- a/content/browser/renderer_host/media/video_capture_manager.cc
+++ b/content/browser/renderer_host/media/video_capture_manager.cc
@@ -593,7 +593,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");
@@ -621,7 +621,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