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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBDevice.cpp

Issue 2862963003: Replace ASSERT with DCHECK in modules/ (Closed)
Patch Set: NOTREACHED instead of DCHECK(false) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webusb/USBDevice.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBDevice.cpp b/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
index 63296201fdd938e8d3868985934a5e247c653a49..03bd0ff3592e2449b638811592d4278fe07b0d08 100644
--- a/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBDevice.cpp
@@ -87,7 +87,7 @@ String ConvertTransferStatus(const UsbTransferStatus& status) {
Vector<uint8_t> ConvertBufferSource(
const ArrayBufferOrArrayBufferView& buffer) {
- ASSERT(!buffer.isNull());
+ DCHECK(!buffer.isNull());
Vector<uint8_t> vector;
if (buffer.isArrayBuffer())
vector.Append(static_cast<uint8_t*>(buffer.getAsArrayBuffer()->Data()),

Powered by Google App Engine
This is Rietveld 408576698