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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device.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: Remove Debug Code 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/media/capture/web_contents_video_capture_device.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index f269ee4754a96510c4715f20d00a26dd8b6d59be..acb69d1ff0d08567338eddd30c667897dc74f36a 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -960,9 +960,11 @@ media::VideoCaptureDevice* WebContentsVideoCaptureDevice::Create(
return NULL;
}
+ bool auto_throttling;
+ WebContentsMediaCaptureId::ExtractOptions(device_id, &auto_throttling,
+ nullptr);
return new WebContentsVideoCaptureDevice(
- render_process_id, main_render_frame_id,
- WebContentsMediaCaptureId::IsAutoThrottlingOptionSet(device_id));
+ render_process_id, main_render_frame_id, auto_throttling);
}
void WebContentsVideoCaptureDevice::AllocateAndStart(

Powered by Google App Engine
This is Rietveld 408576698