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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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/platform/image-decoders/ImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index c5e430430678b7fcfdbb400e65f236e9bba930b7..2bd604708fd4be6c8ad2e573b4cd84e44ab80045 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -314,13 +314,13 @@ namespace {
const unsigned kIccColorProfileHeaderLength = 128;
bool rgbColorProfile(const char* profileData, unsigned profileLength) {
- ASSERT_UNUSED(profileLength, profileLength >= kIccColorProfileHeaderLength);
+ DCHECK_GE(profileLength, kIccColorProfileHeaderLength);
return !memcmp(&profileData[16], "RGB ", 4);
}
bool inputDeviceColorProfile(const char* profileData, unsigned profileLength) {
- ASSERT_UNUSED(profileLength, profileLength >= kIccColorProfileHeaderLength);
+ DCHECK_GE(profileLength, kIccColorProfileHeaderLength);
return !memcmp(&profileData[12], "mntr", 4) ||
!memcmp(&profileData[12], "scnr", 4);

Powered by Google App Engine
This is Rietveld 408576698