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

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

Issue 2879773002: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules (Closed)
Patch Set: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules 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 05ab6eb0965c7f63aa1f7188fa559fc06b915cb9..22e74b96c7c0c3826414dde93cd01c3a47267143 100644
--- a/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBConfiguration.cpp
@@ -32,7 +32,7 @@ USBConfiguration::USBConfiguration(const USBDevice* device,
size_t configuration_index)
: device_(device), configuration_index_(configuration_index) {
DCHECK(device_);
- ASSERT(configuration_index_ < device_->Info().configurations.size());
+ DCHECK_LT(configuration_index_, device_->Info().configurations.size());
}
const USBDevice* USBConfiguration::Device() const {

Powered by Google App Engine
This is Rietveld 408576698