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

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

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and change the reviewers list Created 6 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
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/renderer/media/media_stream_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_audio_source.cc
diff --git a/content/renderer/media/media_stream_audio_source.cc b/content/renderer/media/media_stream_audio_source.cc
index d98855220d8603596f1340900a63ce634aebc39b..86888f8b902a42617529ea947ecbf21c5b31487a 100644
--- a/content/renderer/media/media_stream_audio_source.cc
+++ b/content/renderer/media/media_stream_audio_source.cc
@@ -57,14 +57,14 @@ void MediaStreamAudioSource::AddTrack(
// last track is removed from the source. But in this case, the source is
// is not even started. So we need to fail both adding the track and
// trigger |stop_callback|.
- callback.Run(this, false);
+ callback.Run(this, MEDIA_DEVICE_TRACK_START_FAILURE, "");
StopSource();
return;
}
}
factory_->CreateLocalAudioTrack(track);
- callback.Run(this, true);
+ callback.Run(this, MEDIA_DEVICE_OK, "");
}
} // namespace content
« no previous file with comments | « content/public/common/media_stream_request.h ('k') | content/renderer/media/media_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698