Skip to content

Commit b8f389a

Browse files
author
Guido Urdaneta
committed
Add CHECK to EnumerateDevices call in PepperDeviceManager
BUG=666715 Review-Url: https://codereview.chromium.org/2516603003 Cr-Commit-Position: refs/heads/master@{#433417} (cherry picked from commit 48c91fb) Review URL: https://codereview.chromium.org/2519273003 . Cr-Commit-Position: refs/branch-heads/2924@{#55} Cr-Branched-From: 3a87aec-refs/heads/master@{#433059}
1 parent 66f73b3 commit b8f389a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/renderer/pepper/pepper_media_device_manager.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ void PepperMediaDeviceManager::EnumerateDevices(
8181
#if defined(ENABLE_WEBRTC)
8282
bool request_audio_input = type == PP_DEVICETYPE_DEV_AUDIOCAPTURE;
8383
bool request_video_input = type == PP_DEVICETYPE_DEV_VIDEOCAPTURE;
84+
CHECK(request_audio_input || request_video_input);
8485
GetMediaDevicesDispatcher()->EnumerateDevices(
8586
request_audio_input, request_video_input, false /* audio_output */,
8687
url::Origin(document_url.GetOrigin()),

0 commit comments

Comments
 (0)