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

Issue 61763017: Replace redundant <track> runtime checks with asserts (Closed)

Created:
7 years, 1 month ago by philipj_slow
Modified:
7 years, 1 month ago
Reviewers:
Mike West, adamk, eseidel
CC:
blink-reviews, nessy, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace redundant <track> runtime checks with asserts The IDL as RuntimeEnabled=VideoTrack for these two cases. BUG=313287 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161661

Patch Set 1 #

Total comments: 4

Patch Set 2 : revert some #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M Source/core/html/HTMLMediaElement.cpp View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
philipj_slow
7 years, 1 month ago (2013-11-08 07:28:57 UTC) #1
adamk
https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode564 Source/core/html/HTMLMediaElement.cpp:564: ASSERT(RuntimeEnabledFeatures::videoTrackEnabled()); Will this ASSERT ever be exercised? That is, ...
7 years, 1 month ago (2013-11-08 19:25:17 UTC) #2
philipj_slow
https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode564 Source/core/html/HTMLMediaElement.cpp:564: ASSERT(RuntimeEnabledFeatures::videoTrackEnabled()); On 2013/11/08 19:25:17, adamk wrote: > Will this ...
7 years, 1 month ago (2013-11-08 19:53:02 UTC) #3
adamk
https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode564 Source/core/html/HTMLMediaElement.cpp:564: ASSERT(RuntimeEnabledFeatures::videoTrackEnabled()); On 2013/11/08 19:53:02, philipj wrote: > On 2013/11/08 ...
7 years, 1 month ago (2013-11-08 20:15:00 UTC) #4
philipj_slow
https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/61763017/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode564 Source/core/html/HTMLMediaElement.cpp:564: ASSERT(RuntimeEnabledFeatures::videoTrackEnabled()); On 2013/11/08 20:15:00, adamk wrote: > On 2013/11/08 ...
7 years, 1 month ago (2013-11-08 20:42:46 UTC) #5
eseidel
I like the removing the return 0 and instead asserting. The other changes are less ...
7 years, 1 month ago (2013-11-08 20:47:59 UTC) #6
philipj_slow
On 2013/11/08 20:47:59, eseidel wrote: > I like the removing the return 0 and instead ...
7 years, 1 month ago (2013-11-08 21:15:13 UTC) #7
philipj_slow
On 2013/11/08 20:47:59, eseidel wrote: > I like the removing the return 0 and instead ...
7 years, 1 month ago (2013-11-08 21:15:14 UTC) #8
adamk
lgtm Thanks, definitely agree this makes things easier to reason about.
7 years, 1 month ago (2013-11-08 21:55:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/61763017/90001
7 years, 1 month ago (2013-11-08 22:01:00 UTC) #10
commit-bot: I haz the power
7 years, 1 month ago (2013-11-09 00:01:40 UTC) #11
Message was sent while issue was closed.
Change committed as 161661

Powered by Google App Engine
This is Rietveld 408576698