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

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

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: address nits Created 3 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
« no previous file with comments | « content/renderer/media/user_media_client_impl.h ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index 439e0afa30b00295e8b8cb57191099fc6ff3cd8b..847c94d5d64d237d1949b02f176a7f21bddced75 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -548,7 +548,7 @@ void UserMediaClientImpl::OnStreamGenerated(
// Wait for the tracks to be started successfully or to fail.
request_info->CallbackOnTracksStarted(
base::Bind(&UserMediaClientImpl::OnCreateNativeTracksCompleted,
- weak_factory_.GetWeakPtr()));
+ weak_factory_.GetWeakPtr(), label));
}
void UserMediaClientImpl::OnStreamGeneratedForCancelledRequest(
@@ -817,6 +817,7 @@ void UserMediaClientImpl::CreateAudioTracks(
}
void UserMediaClientImpl::OnCreateNativeTracksCompleted(
+ const std::string& label,
UserMediaRequestInfo* request,
MediaStreamRequestResult result,
const blink::WebString& result_name) {
@@ -827,6 +828,7 @@ void UserMediaClientImpl::OnCreateNativeTracksCompleted(
if (result == content::MEDIA_DEVICE_OK) {
GetUserMediaRequestSucceeded(request->web_stream, request->request);
+ media_stream_dispatcher_->OnStreamStarted(label);
} else {
GetUserMediaRequestFailed(request->request, result, result_name);
« no previous file with comments | « content/renderer/media/user_media_client_impl.h ('k') | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698