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 a2d3c69f42d1ebec4318ed9c8e35cd2127660c7e..837712d1bdc0f53c504e5249945f8d17877a17c0 100644 |
--- a/content/browser/renderer_host/media/video_capture_manager.cc |
+++ b/content/browser/renderer_host/media/video_capture_manager.cc |
@@ -178,7 +178,8 @@ void VideoCaptureManager::OnOpen(int capture_session_id, |
break; |
} |
case MEDIA_SCREEN_VIDEO_CAPTURE: { |
-#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) |
+#if (defined(OS_LINUX) && defined(USE_X11)) || \ |
+ defined(OS_MACOSX) || defined(OS_WIN) |
CHECK(CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableUserMediaScreenCapturing)); |
scoped_refptr<base::SequencedWorkerPool> blocking_pool = |