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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBAlternateInterface.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/USBAlternateInterface.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBAlternateInterface.cpp b/third_party/WebKit/Source/modules/webusb/USBAlternateInterface.cpp
index 8b6d8f79b373eabdb8c78cec1f7bff41f49780a1..9eac61f609a84ac562b00ea474cd33fa36d9d00f 100644
--- a/third_party/WebKit/Source/modules/webusb/USBAlternateInterface.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBAlternateInterface.cpp
@@ -32,7 +32,7 @@ USBAlternateInterface* USBAlternateInterface::Create(
USBAlternateInterface::USBAlternateInterface(const USBInterface* interface,
size_t alternate_index)
: interface_(interface), alternate_index_(alternate_index) {
- ASSERT(interface_);
+ DCHECK(interface_);
ASSERT(alternate_index_ < interface_->Info().alternates.size());
}

Powered by Google App Engine
This is Rietveld 408576698