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

Unified Diff: third_party/WebKit/Source/core/html/forms/WeekInputType.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/WeekInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/WeekInputType.cpp b/third_party/WebKit/Source/core/html/forms/WeekInputType.cpp
index 626c8d823375d24c01e0413cbd942cd2acd8c908..2448c8070c880a897e4eae58520804bfe14cbf41 100644
--- a/third_party/WebKit/Source/core/html/forms/WeekInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/WeekInputType.cpp
@@ -70,14 +70,14 @@ StepRange WeekInputType::createStepRange(AnyStepHandling anyStepHandling) const
bool WeekInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const
{
- ASSERT(out);
+ DCHECK(out);
unsigned end;
return out->parseWeek(string, 0, end) && end == string.length();
}
bool WeekInputType::setMillisecondToDateComponents(double value, DateComponents* date) const
{
- ASSERT(date);
+ DCHECK(date);
return date->setMillisecondsSinceEpochForWeek(value);
}

Powered by Google App Engine
This is Rietveld 408576698