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

Issue 1318393002: Refactor "track options" to be a dictionary. (Closed)

Created:
5 years, 3 months ago by hta - Chromium
Modified:
5 years, 2 months ago
CC:
blink-reviews, tommyw+watchlist_chromium.org, Guido Urdaneta, tommi (sloooow) - chröme
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor "track options" to be a dictionary. This dictionary has members "optional" and "mandatory" for backwards compatibility; the intent is that constraints using these members will be treated like old-style constraints, while constraints without them will be treated like spec-style. BUG=537590 Committed: https://crrev.com/0e6149ca421d75a825064359ac01b8a71f5c3c13 Cr-Commit-Position: refs/heads/master@{#353519}

Patch Set 1 #

Patch Set 2 : Rebase to merged repositories #

Patch Set 3 : Used MediaTrackConstraintSet in union types #

Total comments: 18

Patch Set 4 : Review comments #

Patch Set 5 : Rebase to HEAD #

Total comments: 14

Patch Set 6 : More review comments addressed #

Total comments: 13

Patch Set 7 : Address more review comments #

Patch Set 8 : Another review comment set #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -42 lines) Patch
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp View 1 2 3 4 5 6 7 5 chunks +76 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamConstraints.idl View 1 2 3 4 5 1 chunk +7 lines, -20 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/UserMediaRequest.cpp View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
hta - Chromium
Time for review. Cannot be landed yet (commit of the union patch failed in queue).
5 years, 2 months ago (2015-10-02 14:33:52 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318393002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318393002/40001
5 years, 2 months ago (2015-10-05 12:18:29 UTC) #4
Guido Urdaneta
https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode128 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:128: for (; iter != mandatoryConstraintsHashMap.end(); ++iter) Can you use ...
5 years, 2 months ago (2015-10-05 12:34:12 UTC) #5
hta - Chromium
I'd like some help on finding "range for". https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode128 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:128: for ...
5 years, 2 months ago (2015-10-05 12:54:02 UTC) #6
Guido Urdaneta
https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode128 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:128: for (; iter != mandatoryConstraintsHashMap.end(); ++iter) On 2015/10/05 12:54:01, ...
5 years, 2 months ago (2015-10-05 13:00:25 UTC) #7
Peter Beverloo
https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode120 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:120: Dictionary mandatoryConstraintsDictionary = constraintsIn.mandatory(); Parsing of |mandatoryConstraintsDictionary| and |optionalConstraintsVector| ...
5 years, 2 months ago (2015-10-05 13:49:09 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-05 14:07:01 UTC) #11
hta - Chromium
Significant blush for the work-in-progress comments I'd forgotten to remove! See if you like this ...
5 years, 2 months ago (2015-10-05 21:28:07 UTC) #12
Peter Beverloo
lgtm % few nits https://codereview.chromium.org/1318393002/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode58 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:58: mandatoryConstraintsVector.append(WebMediaConstraint(iter->key, iter->value)); nit: Why don't ...
5 years, 2 months ago (2015-10-08 09:50:26 UTC) #13
hta - Chromium
I think it's OK now... WebVector is a very limited vector type. https://codereview.chromium.org/1318393002/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp ...
5 years, 2 months ago (2015-10-09 13:02:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318393002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318393002/100001
5 years, 2 months ago (2015-10-09 13:07:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/108122)
5 years, 2 months ago (2015-10-09 13:18:09 UTC) #19
tommi (sloooow) - chröme
https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode57 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:57: for (; iter != mandatoryConstraintsHashMap.end(); ++iter) range based for ...
5 years, 2 months ago (2015-10-09 14:49:21 UTC) #20
hta - Chromium
A few more const & added. Tests still pass, so I guess it works. Asking ...
5 years, 2 months ago (2015-10-09 16:26:28 UTC) #21
Guido Urdaneta
https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode57 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:57: for (; iter != mandatoryConstraintsHashMap.end(); ++iter) On 2015/10/09 16:26:28, ...
5 years, 2 months ago (2015-10-12 08:54:56 UTC) #22
tommi (sloooow) - chröme
https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode57 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:57: for (; iter != mandatoryConstraintsHashMap.end(); ++iter) On 2015/10/09 16:26:28, ...
5 years, 2 months ago (2015-10-12 09:02:28 UTC) #23
hta - Chromium
Adopted the range based for loop. It's beautiful, not just shiny :-) https://codereview.chromium.org/1318393002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp ...
5 years, 2 months ago (2015-10-12 12:24:40 UTC) #24
tommi (sloooow) - chröme
lgtm
5 years, 2 months ago (2015-10-12 12:26:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318393002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318393002/140001
5 years, 2 months ago (2015-10-12 12:27:29 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-10-12 13:45:52 UTC) #29
commit-bot: I haz the power
5 years, 2 months ago (2015-10-12 13:46:49 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0e6149ca421d75a825064359ac01b8a71f5c3c13
Cr-Commit-Position: refs/heads/master@{#353519}

Powered by Google App Engine
This is Rietveld 408576698