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

Unified Diff: third_party/WebKit/Source/core/html/forms/BaseTemporalInputType.cpp

Issue 2097313002: Replace ASSERT macros with DCHECK, etc. in core/html/forms/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/core/html/forms/BaseTemporalInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseTemporalInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseTemporalInputType.cpp
index 62a0df19d43c9731df0a27815adfac6d3bedf55f..8518f298340c68d552177b2c19fe7b3d7483ccad 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseTemporalInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseTemporalInputType.cpp
@@ -117,7 +117,7 @@ Decimal BaseTemporalInputType::parseToNumber(const String& source, const Decimal
if (!parseToDateComponents(source, &date))
return defaultValue;
double msec = date.millisecondsSinceEpoch();
- ASSERT(std::isfinite(msec));
+ DCHECK(std::isfinite(msec));
return Decimal::fromDouble(msec);
}

Powered by Google App Engine
This is Rietveld 408576698