Chromium Code Reviews

Issue 173893009: MediaStream API: Update getUserMedia to match the spec (Closed)

Created:
6 years, 10 months ago by Tommy Widenflycht
Modified:
6 years, 10 months ago
Reviewers:
Mike West, sof, jochen (gone - plz use gerrit)
CC:
blink-reviews, tommyw+watchlist_chromium.org
Visibility:
Public.

Description

MediaStream API: Update getUserMedia to match the spec Both the success and the fail callbacks are mandatory and may not be null. Also taking the opportunity to clean up the code and add proper exceptions where needed as promised. BUG=344874 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167685

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fixed review comment #

Unified diffs Side-by-side diffs Stats (+85 lines, -117 lines)
M LayoutTests/fast/mediastream/argument-types.html View 1 chunk +45 lines, -1 line 0 comments
M LayoutTests/fast/mediastream/argument-types-expected.txt View 1 chunk +28 lines, -35 lines 0 comments
M LayoutTests/fast/mediastream/getusermedia-expected.txt View 1 chunk +1 line, -1 line 0 comments
D LayoutTests/fast/mediastream/script-tests/argument-types.js View 1 chunk +0 lines, -68 lines 0 comments
M Source/modules/mediastream/NavigatorMediaStream.cpp View 1 chunk +1 line, -2 lines 0 comments
M Source/modules/mediastream/NavigatorMediaStream.idl View 1 chunk +1 line, -1 line 0 comments
M Source/modules/mediastream/UserMediaRequest.cpp View 4 chunks +9 lines, -9 lines 0 comments

Messages

Total messages: 15 (0 generated)
Tommy Widenflycht
As promised I cleaned up getUserMedias use of exceptions :)
6 years, 10 months ago (2014-02-21 10:14:10 UTC) #1
Tommy Widenflycht
6 years, 10 months ago (2014-02-21 12:23:58 UTC) #2
Mike West
LGTM, so long as the bots are happy (they're mostly red at the moment; I've ...
6 years, 10 months ago (2014-02-21 14:59:11 UTC) #3
sof
https://codereview.chromium.org/173893009/diff/1/Source/modules/mediastream/UserMediaRequest.cpp File Source/modules/mediastream/UserMediaRequest.cpp (right): https://codereview.chromium.org/173893009/diff/1/Source/modules/mediastream/UserMediaRequest.cpp#newcode71 Source/modules/mediastream/UserMediaRequest.cpp:71: exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::argumentNullOrIncorrectType(2, "NavigatorUserMediaSuccessCallback")); This isn't correct, I think - ...
6 years, 10 months ago (2014-02-21 15:15:58 UTC) #4
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 10 months ago (2014-02-21 15:40:57 UTC) #5
Tommy Widenflycht
The CQ bit was unchecked by tommyw@chromium.org
6 years, 10 months ago (2014-02-21 15:40:59 UTC) #6
Tommy Widenflycht
On 2014/02/21 15:15:58, sof wrote: > https://codereview.chromium.org/173893009/diff/1/Source/modules/mediastream/UserMediaRequest.cpp > File Source/modules/mediastream/UserMediaRequest.cpp (right): > > https://codereview.chromium.org/173893009/diff/1/Source/modules/mediastream/UserMediaRequest.cpp#newcode71 > ...
6 years, 10 months ago (2014-02-21 15:43:57 UTC) #7
sof
On 2014/02/21 15:43:57, Tommy Widenflycht wrote: > On 2014/02/21 15:15:58, sof wrote: > > > ...
6 years, 10 months ago (2014-02-21 15:48:56 UTC) #8
Tommy Widenflycht
On 2014/02/21 15:48:56, sof wrote: > On 2014/02/21 15:43:57, Tommy Widenflycht wrote: > > On ...
6 years, 10 months ago (2014-02-21 16:01:02 UTC) #9
sof
On 2014/02/21 16:01:02, Tommy Widenflycht wrote: .. > > Removed the null checks since the ...
6 years, 10 months ago (2014-02-21 20:44:26 UTC) #10
Tommy Widenflycht
The CQ bit was checked by tommyw@chromium.org
6 years, 10 months ago (2014-02-24 07:36:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommyw@chromium.org/173893009/180001
6 years, 10 months ago (2014-02-24 07:36:24 UTC) #12
Mike West
still LGTM, FWIW. :)
6 years, 10 months ago (2014-02-24 07:50:49 UTC) #13
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-02-24 11:23:39 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-24 12:54:13 UTC) #15
Message was sent while issue was closed.
Change committed as 167685

Powered by Google App Engine