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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBConfiguration.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/USBConfiguration.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp b/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp
index 96239557c7ec05523ee8503249f0e096d0c8b3cc..05ab6eb0965c7f63aa1f7188fa559fc06b915cb9 100644
--- a/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp
@@ -31,7 +31,7 @@ USBConfiguration* USBConfiguration::Create(const USBDevice* device,
USBConfiguration::USBConfiguration(const USBDevice* device,
size_t configuration_index)
: device_(device), configuration_index_(configuration_index) {
- ASSERT(device_);
+ DCHECK(device_);
ASSERT(configuration_index_ < device_->Info().configurations.size());
}

Powered by Google App Engine
This is Rietveld 408576698