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

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

Issue 100743003: Extend content::DesktopMediaID to allow Aura windows as capture sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/renderer_host/media/media_stream_manager.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager.cc b/content/browser/renderer_host/media/media_stream_manager.cc
index d09200d8d526cf487d2f094880cdb9a6fc726a43..b90f47a4207faa2815c49edd43e562b5bd6a5924 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -26,7 +26,6 @@
#include "content/public/browser/media_observer.h"
#include "content/public/browser/media_request_state.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/desktop_media_id.h"
#include "content/public/common/media_stream_request.h"
#include "media/audio/audio_manager_base.h"
#include "media/audio/audio_parameters.h"
@@ -1096,10 +1095,7 @@ bool MediaStreamManager::SetupScreenCaptureRequest(DeviceRequest* request) {
}
DCHECK(mandatory);
- if (video_stream_source == kMediaStreamSourceScreen) {
- video_device_id =
- DesktopMediaID(DesktopMediaID::TYPE_SCREEN, 0).ToString();
- } else if (video_stream_source == kMediaStreamSourceDesktop) {
+ if (video_stream_source == kMediaStreamSourceDesktop) {
if (!request->options.GetFirstVideoConstraintByName(
kMediaStreamSourceId,
&video_device_id,

Powered by Google App Engine
This is Rietveld 408576698