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

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

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 9 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 f9ffefc01614771472d1a42e5ba27458b18af56d..7d1f955c99ea636031f6bbcaa7712b631e115c78 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
@@ -36,15 +36,19 @@ void MediaStreamDispatcherHost::StreamGenerated(
video_devices));
}
-void MediaStreamDispatcherHost::StreamGenerationFailed(int render_view_id,
- int page_request_id) {
+void MediaStreamDispatcherHost::StreamGenerationFailed(
+ int render_view_id,
+ int page_request_id,
+ content::MediaStreamRequestResult result) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DVLOG(1) << "MediaStreamDispatcherHost::StreamGenerationFailed("
- << ", {page_request_id = " << page_request_id << "})";
+ << ", {page_request_id = " << page_request_id << "}"
+ << ", { result= " << result << "})";
Send(new MediaStreamMsg_StreamGenerationFailed(render_view_id,
- page_request_id));
+ page_request_id,
+ result));
}
void MediaStreamDispatcherHost::DeviceStopped(int render_view_id,

Powered by Google App Engine
This is Rietveld 408576698