Index: chrome/browser/media/media_stream_devices_controller.cc |
diff --git a/chrome/browser/media/media_stream_devices_controller.cc b/chrome/browser/media/media_stream_devices_controller.cc |
index 53225c3f9696f5a3bc469040a2a8e637d6addbf8..20132806bec4ec2e8bd96976d4304d1919719077 100644 |
--- a/chrome/browser/media/media_stream_devices_controller.cc |
+++ b/chrome/browser/media/media_stream_devices_controller.cc |
@@ -67,6 +67,13 @@ void MediaStreamDevicesController::RegisterUserPrefs(PrefService* prefs) { |
bool MediaStreamDevicesController::DismissInfoBarAndTakeActionOnSettings() { |
+ // If this is a no UI check for policies only go straight to accept - policy |
+ // check will be done automatically on the way. |
+ if (request_.request_type == content::MEDIA_OPEN_DEVICE) { |
+ Accept(false); |
+ return true; |
+ } |
+ |
if (request_.audio_type == content::MEDIA_TAB_AUDIO_CAPTURE || |
request_.video_type == content::MEDIA_TAB_VIDEO_CAPTURE) { |
HandleTapMediaRequest(); |