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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInterface.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/USBInterface.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBInterface.cpp b/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
index b4c0de8d1e3fa653351d113685adc8d6878473ef..b93032857cec3e1d106dda4d746cec588894e612 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
@@ -37,9 +37,9 @@ USBInterface::USBInterface(const USBDevice* device,
: device_(device),
configuration_index_(configuration_index),
interface_index_(interface_index) {
- ASSERT(configuration_index_ < device_->Info().configurations.size());
- ASSERT(
- interface_index_ <
+ DCHECK_LT(configuration_index_, device_->Info().configurations.size());
+ DCHECK_LT(
+ interface_index_,
device_->Info().configurations[configuration_index_]->interfaces.size());
}

Powered by Google App Engine
This is Rietveld 408576698