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

Unified Diff: Source/modules/mediastream/NavigatorMediaStream.cpp

Issue 173893009: MediaStream API: Update getUserMedia to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comment Created 6 years, 10 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: Source/modules/mediastream/NavigatorMediaStream.cpp
diff --git a/Source/modules/mediastream/NavigatorMediaStream.cpp b/Source/modules/mediastream/NavigatorMediaStream.cpp
index 77870d6caa2166267c172e7e1c09496a6c104a86..78175436a2189154b3de47df7f6c969a2667e0a0 100644
--- a/Source/modules/mediastream/NavigatorMediaStream.cpp
+++ b/Source/modules/mediastream/NavigatorMediaStream.cpp
@@ -60,8 +60,7 @@ void NavigatorMediaStream::webkitGetUserMedia(Navigator& navigator, const Dictio
RefPtr<UserMediaRequest> request = UserMediaRequest::create(navigator.frame()->document(), userMedia, options, successCallback, errorCallback, exceptionState);
if (!request) {
- if (!exceptionState.hadException())
- exceptionState.throwDOMException(NotSupportedError, "Failed to request user media.");
+ ASSERT(exceptionState.hadException());
return;
}
« no previous file with comments | « LayoutTests/fast/mediastream/script-tests/argument-types.js ('k') | Source/modules/mediastream/NavigatorMediaStream.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698