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

Unified Diff: third_party/WebKit/Source/core/loader/FormSubmission.cpp

Issue 2327643003: Replace ASSERT*() with DCHECK*() in core/fetch/ and core/loader/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 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/loader/FormSubmission.cpp
diff --git a/third_party/WebKit/Source/core/loader/FormSubmission.cpp b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
index de7831e1164a44d7164080ed4008675ffb32e21b..3d26a2b8e3802c49e142abdd6fb9bdba9938d018 100644
--- a/third_party/WebKit/Source/core/loader/FormSubmission.cpp
+++ b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
@@ -129,7 +129,7 @@ String FormSubmission::Attributes::methodString(SubmitMethod method)
case DialogMethod:
return "dialog";
}
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return emptyString();
}
@@ -164,7 +164,7 @@ inline FormSubmission::FormSubmission(const String& result)
FormSubmission* FormSubmission::create(HTMLFormElement* form, const Attributes& attributes, Event* event)
{
- ASSERT(form);
+ DCHECK(form);
HTMLFormControlElement* submitButton = 0;
if (event && event->target()) {
@@ -223,7 +223,7 @@ FormSubmission* FormSubmission::create(HTMLFormElement* form, const Attributes&
bool containsPasswordData = false;
for (unsigned i = 0; i < form->associatedElements().size(); ++i) {
FormAssociatedElement* control = form->associatedElements()[i];
- ASSERT(control);
+ DCHECK(control);
HTMLElement& element = toHTMLElement(*control);
if (!element.isDisabledFormControl())
control->appendToFormData(*domFormData);
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentWriter.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698