forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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- Review URL: https://codereview.chromium.org/1861963004 Cr-Commit-Position: refs/heads/master@{#385515}
- Loading branch information
1 parent
c94b50c
commit 579ac73
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters