From f05199d4e40c041c34737d5c9ca04d297115e4dd Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 11 Aug 2014 23:22:49 +0800 Subject: [PATCH] Don't be too strict on media requests. --- .../media/media_stream_devices_controller.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/brightray/browser/media/media_stream_devices_controller.cc b/brightray/browser/media/media_stream_devices_controller.cc index 22fb0d1310d..2b7510939dd 100644 --- a/brightray/browser/media/media_stream_devices_controller.cc +++ b/brightray/browser/media/media_stream_devices_controller.cc @@ -47,21 +47,6 @@ MediaStreamDevicesController::~MediaStreamDevicesController() { } bool MediaStreamDevicesController::TakeAction() { - // Tab capture is allowed for extensions only and infobar is not shown for - // extensions. - if (request_.audio_type == content::MEDIA_TAB_AUDIO_CAPTURE || - request_.video_type == content::MEDIA_TAB_VIDEO_CAPTURE) { - Deny(); - return true; - } - - // Deny the request if the security origin is empty, this happens with - // file access without |--allow-file-access-from-files| flag. - if (request_.security_origin.is_empty()) { - Deny(); - return true; - } - // Deny the request if there is no device attached to the OS. if (!HasAnyAvailableDevice()) { Deny();