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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
Index: content/browser/renderer_host/media/media_stream_dispatcher_host.cc
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
index 27a628f303a4fd58b931b62d1cae3560c022a49b..fb817b9cf8a738dceeb3c5c6857e376457677e26 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
@@ -106,21 +106,6 @@ void MediaStreamDispatcherHost::DevicesEnumerated(
request.render_view_id, request.page_request_id, devices));
}
-void MediaStreamDispatcherHost::DevicesEnumerationFailed(
- const std::string& label) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- DVLOG(1) << "MediaStreamDispatcherHost::DevicesEnumerationFailed("
- << ", {label = " << label << "})";
-
- StreamMap::iterator it = streams_.find(label);
- DCHECK(it != streams_.end());
- StreamRequest request = it->second;
- streams_.erase(it);
-
- Send(new MediaStreamMsg_DevicesEnumerationFailed(
- request.render_view_id, request.page_request_id));
-}
-
void MediaStreamDispatcherHost::DeviceOpened(
const std::string& label,
const StreamDeviceInfo& video_device) {
@@ -136,21 +121,6 @@ void MediaStreamDispatcherHost::DeviceOpened(
request.render_view_id, request.page_request_id, label, video_device));
}
-void MediaStreamDispatcherHost::DeviceOpenFailed(
- const std::string& label) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- DVLOG(1) << "MediaStreamDispatcherHost::DeviceOpenFailed("
- << ", {label = " << label << "})";
-
- StreamMap::iterator it = streams_.find(label);
- DCHECK(it != streams_.end());
- StreamRequest request = it->second;
- streams_.erase(it);
-
- Send(new MediaStreamMsg_DeviceOpenFailed(request.render_view_id,
- request.page_request_id));
-}
-
bool MediaStreamDispatcherHost::OnMessageReceived(
const IPC::Message& message, bool* message_was_ok) {
bool handled = true;

Powered by Google App Engine
This is Rietveld 408576698