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

Unified Diff: third_party/WebKit/Source/platform/DateComponents.cpp

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/Crypto.cpp ('k') | third_party/WebKit/Source/platform/Decimal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/DateComponents.cpp
diff --git a/third_party/WebKit/Source/platform/DateComponents.cpp b/third_party/WebKit/Source/platform/DateComponents.cpp
index 945063ad540f536de225f07e22f19e47653400b7..5192eeca50efa54f537da7e24caa92e0d7cbfb13 100644
--- a/third_party/WebKit/Source/platform/DateComponents.cpp
+++ b/third_party/WebKit/Source/platform/DateComponents.cpp
@@ -183,7 +183,7 @@ static bool WithinHTMLDateLimits(int year,
}
bool DateComponents::AddDay(int day_diff) {
- ASSERT(month_day_);
+ DCHECK(month_day_);
int day = month_day_ + day_diff;
if (day > MaxDayOfMonth(year_, month_)) {
« no previous file with comments | « third_party/WebKit/Source/platform/Crypto.cpp ('k') | third_party/WebKit/Source/platform/Decimal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698