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

Unified Diff: content/renderer/media/user_media_client_impl.cc

Issue 1926723002: Remove bogus DCHECKs in enumeration processing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index 62dca219828b9e88036beea4d0dbb26b5003caf6..21431ec4c6121a0c67583d71b59d84f34f5a7d5e 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -727,16 +727,13 @@ void UserMediaClientImpl::OnDevicesEnumerated(
if (request_id == request->audio_input_request_id) {
request->has_audio_input_returned = true;
- DCHECK(request->audio_input_devices.empty());
request->audio_input_devices = device_array;
} else if (request_id == request->video_input_request_id) {
request->has_video_input_returned = true;
- DCHECK(request->video_input_devices.empty());
request->video_input_devices = device_array;
} else {
DCHECK_EQ(request->audio_output_request_id, request_id);
request->has_audio_output_returned = true;
- DCHECK(request->audio_output_devices.empty());
request->audio_output_devices = device_array;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698