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

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

Issue 88283002: Reland review 34393006: Refactor MediaStreamManager to not output real device id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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 ef91e0f36fd41d338d7c1d853e0705924397b2d9..6736be212f91355249197da2562651658e2e3a0a 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host.cc
@@ -147,12 +147,8 @@ void MediaStreamDispatcherHost::OnGenerateStream(
const std::string& label = media_stream_manager_->GenerateStream(
this, render_process_id_, render_view_id, page_request_id,
components, security_origin);
- if (label.empty()) {
- Send(new MediaStreamMsg_StreamGenerationFailed(render_view_id,
- page_request_id));
- } else {
- StoreRequest(render_view_id, page_request_id, label);
- }
+ CHECK(!label.empty());
+ StoreRequest(render_view_id, page_request_id, label);
}
void MediaStreamDispatcherHost::OnCancelGenerateStream(int render_view_id,

Powered by Google App Engine
This is Rietveld 408576698