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

Issue 1861963004: MediaRecorder: ASSERT-->DCHECK and a tiny cleanup in CanvasCapture (Closed)

Created:
4 years, 8 months ago by mcasas
Modified:
4 years, 8 months ago
Reviewers:
haraken, emircan
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaRecorder: ASSERT-->DCHECK and a tiny cleanup in CanvasCapture Blink now supports DCHECK()s and NOTREACHED(), this CL uses them instead of ASSERT() and ASSERT_NOT_REACHED(), respectively. I was going to do the same HTMLCanvasElementCapture, but removed the DCHECK instead bc of Chrome StyleGuide [1]: > you should not handle DCHECK() failures, even if failure would > result in a crash. Attempting to handle a DCHECK() failure is a > statement that the DCHECK() can fail, which contradicts the point > of writing the DCHECK(). In particular, do not write code like > the following: > > DCHECK(foo); > if (!foo) ... // Can't succeed! BUG=596760 [1] https://www.chromium.org/developers/coding-style#TOC-CHECK-DCHECK-and-NOTREACHED- Committed: https://crrev.com/579ac73af399f0f16cfde8d0cda23ff1ec30750a Cr-Commit-Position: refs/heads/master@{#385515}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
mcasas
emircan@ PTAL (assuming bots are happy).
4 years, 8 months ago (2016-04-06 17:29:15 UTC) #2
emircan
lgtm
4 years, 8 months ago (2016-04-06 18:21:31 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861963004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861963004/1
4 years, 8 months ago (2016-04-06 18:47:52 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-06 18:56:21 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/579ac73af399f0f16cfde8d0cda23ff1ec30750a Cr-Commit-Position: refs/heads/master@{#385515}
4 years, 8 months ago (2016-04-06 18:57:20 UTC) #10
haraken
4 years, 8 months ago (2016-04-06 23:44:57 UTC) #11
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698