Skip to content

Commit

Permalink
Add CHECK to EnumerateDevices call in PepperDeviceManager
Browse files Browse the repository at this point in the history
BUG=666715

Review-Url: https://codereview.chromium.org/2516603003
Cr-Commit-Position: refs/heads/master@{#433417}
  • Loading branch information
guidou authored and Commit bot committed Nov 19, 2016
1 parent 66cf403 commit 48c91fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/renderer/pepper/pepper_media_device_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ void PepperMediaDeviceManager::EnumerateDevices(
#if defined(ENABLE_WEBRTC)
bool request_audio_input = type == PP_DEVICETYPE_DEV_AUDIOCAPTURE;
bool request_video_input = type == PP_DEVICETYPE_DEV_VIDEOCAPTURE;
CHECK(request_audio_input || request_video_input);
GetMediaDevicesDispatcher()->EnumerateDevices(
request_audio_input, request_video_input, false /* audio_output */,
url::Origin(document_url.GetOrigin()),
Expand Down

0 comments on commit 48c91fb

Please sign in to comment.