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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBEndpoint.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/USBEndpoint.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp b/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
index 4c25e8cf035f0a14e633d5e66e508feded1d9769..777cd9cfdaab0aaeb2bbd7a99ba95c91a564742d 100644
--- a/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
@@ -72,13 +72,13 @@ USBEndpoint::USBEndpoint(const USBAlternateInterface* alternate,
size_t endpoint_index)
: alternate_(alternate), endpoint_index_(endpoint_index) {
DCHECK(alternate_);
- ASSERT(endpoint_index_ < alternate_->Info().endpoints.size());
+ DCHECK_LT(endpoint_index_, alternate_->Info().endpoints.size());
}
const device::mojom::blink::UsbEndpointInfo& USBEndpoint::Info() const {
const device::mojom::blink::UsbAlternateInterfaceInfo& alternate_info =
alternate_->Info();
- ASSERT(endpoint_index_ < alternate_info.endpoints.size());
+ DCHECK_LT(endpoint_index_, alternate_info.endpoints.size());
return *alternate_info.endpoints[endpoint_index_];
}
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698