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

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

Issue 2380793002: Migrate MediaDevices.enumerateDevices to Mojo (Closed)
Patch Set: rebase Created 4 years, 2 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 | « content/common/typemaps.gni ('k') | content/renderer/media/user_media_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/mock_media_stream_dispatcher.cc
diff --git a/content/renderer/media/mock_media_stream_dispatcher.cc b/content/renderer/media/mock_media_stream_dispatcher.cc
index e66985142b330e2877bf0483524495a0a0f599a0..89bef8f214fa21c7930d484477b3a55689118453 100644
--- a/content/renderer/media/mock_media_stream_dispatcher.cc
+++ b/content/renderer/media/mock_media_stream_dispatcher.cc
@@ -61,21 +61,7 @@ void MockMediaStreamDispatcher::EnumerateDevices(
const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler,
MediaStreamType type,
const url::Origin& security_origin) {
- if (type == MEDIA_DEVICE_AUDIO_CAPTURE) {
- audio_input_request_id_ = request_id;
- audio_input_array_.clear();
- AddAudioInputDeviceToArray(true);
- AddAudioInputDeviceToArray(false);
- } else if (type == MEDIA_DEVICE_AUDIO_OUTPUT) {
- audio_output_request_id_ = request_id;
- audio_output_array_.clear();
- AddAudioOutputDeviceToArray();
- } else if (type == MEDIA_DEVICE_VIDEO_CAPTURE) {
- video_request_id_ = request_id;
- video_array_.clear();
- AddVideoDeviceToArray(true);
- AddVideoDeviceToArray(false);
- }
+ NOTREACHED();
}
void MockMediaStreamDispatcher::StopStreamDevice(
« no previous file with comments | « content/common/typemaps.gni ('k') | content/renderer/media/user_media_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698