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

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: add bug id and reviewer Created 6 years, 5 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/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 069f4e3825dfc2797ed97d42b3971dfa1a91fb9d..8458c654035931dcb4cdd619497b7d7432f8a1ff 100644
--- a/content/renderer/media/media_stream_audio_source.cc
+++ b/content/renderer/media/media_stream_audio_source.cc
@@ -43,14 +43,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

Powered by Google App Engine
This is Rietveld 408576698