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()); |
} |