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

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

Issue 12563002: x11: Include X11 dependencies only when building with X11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 | « build/linux/system.gyp ('k') | content/content_browser.gypi » ('j') | 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 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 =
« no previous file with comments | « build/linux/system.gyp ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698