Use DCHECK instead of assert
This commit is contained in:
parent
7a5ec96d53
commit
3237c6751a
1 changed files with 1 additions and 2 deletions
|
@ -497,9 +497,8 @@ bool WebContents::PreHandleKeyboardEvent(
|
|||
event.type == blink::WebInputEvent::Type::RawKeyDown ? "keyDown" :
|
||||
event.type == blink::WebInputEvent::Type::KeyUp ? "keyUp" :
|
||||
nullptr;
|
||||
DCHECK(type);
|
||||
if (!type) {
|
||||
// This should never happen.
|
||||
assert(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue