Chromium Code Reviews
DescriptionMediaRecorder: 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 #
Messages
Total messages: 11 (5 generated)
|
||||||||||||||||||||||||||||