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

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

Issue 2625553003: DesktopCaptureDevice is available when webrtc is enabled. (Closed)
Patch Set: Guard one more place with ENABLE_SCREEN_CAPTURE Created 3 years, 11 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 | « content/browser/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6af09c0411e1b71cfec71c2d414e2eb4196b9ec2..c9adda85538825b17a931f0f3701c883099b02a0 100644
--- a/content/browser/renderer_host/media/video_capture_manager.cc
+++ b/content/browser/renderer_host/media/video_capture_manager.cc
@@ -661,9 +661,11 @@ VideoCaptureManager::DoStartTabCaptureOnDeviceThread(
DCHECK(IsOnDeviceThread());
std::unique_ptr<VideoCaptureDevice> video_capture_device;
+#if defined(ENABLE_SCREEN_CAPTURE)
#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN)
boliu 2017/01/10 17:31:51 don't need the inner define anymore
byungchul 2017/01/10 17:40:38 Done.
video_capture_device = WebContentsVideoCaptureDevice::Create(id);
#endif
+#endif
if (!video_capture_device) {
device_client->OnError(FROM_HERE, "Could not create capture device");
« no previous file with comments | « content/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698