Index: content/renderer/media/media_stream_dispatcher.cc |
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc |
index 228bd85e3155abe86fb4851bb5e55b274e8905e0..4da3855930f1390539aedae84d4ea5c410da6071 100644 |
--- a/content/renderer/media/media_stream_dispatcher.cc |
+++ b/content/renderer/media/media_stream_dispatcher.cc |
@@ -69,7 +69,7 @@ MediaStreamDispatcher::~MediaStreamDispatcher() {} |
void MediaStreamDispatcher::GenerateStream( |
int request_id, |
const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, |
- media_stream::StreamOptions components, |
+ const media_stream::StreamOptions& components, |
const GURL& security_origin) { |
DCHECK(main_loop_->BelongsToCurrentThread()); |
DVLOG(1) << "MediaStreamDispatcher::GenerateStream(" << request_id << ")"; |
@@ -81,24 +81,6 @@ void MediaStreamDispatcher::GenerateStream( |
security_origin)); |
} |
-void MediaStreamDispatcher::GenerateStreamForDevice( |
- int request_id, |
- const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, |
- media_stream::StreamOptions components, |
- const std::string& device_id, |
- const GURL& security_origin) { |
- DCHECK(main_loop_->BelongsToCurrentThread()); |
- DVLOG(1) << "MediaStreamDispatcher::GenerateStreamForDevice(" |
- << request_id << ")"; |
- |
- requests_.push_back(Request(event_handler, request_id, next_ipc_id_)); |
- Send(new MediaStreamHostMsg_GenerateStreamForDevice(routing_id(), |
- next_ipc_id_++, |
- components, |
- device_id, |
- security_origin)); |
-} |
- |
void MediaStreamDispatcher::CancelGenerateStream(int request_id) { |
DCHECK(main_loop_->BelongsToCurrentThread()); |
DVLOG(1) << "MediaStreamDispatcher::CancelGenerateStream" |