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

Unified Diff: content/browser/BUILD.gn

Issue 2625553003: DesktopCaptureDevice is available when webrtc is enabled. (Closed)
Patch Set: Fixed the comment in BUILD.gn 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 | « no previous file | content/browser/renderer_host/media/video_capture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/BUILD.gn
diff --git a/content/browser/BUILD.gn b/content/browser/BUILD.gn
index a08452be25868cc8a74dd6134b23452637d2b65a..952e2e8f07518fc11a8f3ae8ca23bb1a07dedcb7 100644
--- a/content/browser/BUILD.gn
+++ b/content/browser/BUILD.gn
@@ -1500,17 +1500,10 @@ source_set("browser") {
"//third_party/webrtc/media:rtc_media_base",
"//third_party/webrtc/modules/desktop_capture:primitives",
]
-
- if (is_linux || is_mac || is_win) {
- sources += [
- "media/capture/desktop_capture_device.cc",
- "media/capture/desktop_capture_device.h",
- ]
- deps += [ "//third_party/webrtc/modules/desktop_capture" ]
- }
}
- # Desktop screen capture implementations that are not dependent on WebRTC.
+ # Desktop screen capture implementations, conditionally built depending on
+ # the available implementations for each platform.
if (is_linux || is_mac || is_win) {
defines += [ "ENABLE_SCREEN_CAPTURE=1" ]
sources += [
@@ -1541,6 +1534,13 @@ source_set("browser") {
"media/capture/window_activity_tracker_mac.mm",
]
}
+ if (enable_webrtc) {
+ sources += [
+ "media/capture/desktop_capture_device.cc",
+ "media/capture/desktop_capture_device.h",
+ ]
+ deps += [ "//third_party/webrtc/modules/desktop_capture" ]
+ }
}
if (is_win) {
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698