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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 6539002: Begun the DCHECK() cleanup. Starting off with /src/chrome/a* and /src/chrome/... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 10 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: chrome/browser/autofill/autofill_manager.cc
===================================================================
--- chrome/browser/autofill/autofill_manager.cc (revision 75278)
+++ chrome/browser/autofill/autofill_manager.cc (working copy)
@@ -452,10 +452,10 @@
if ((*iter) == field) {
AutoFillType autofill_type(autofill_field->type());
if (profile) {
- DCHECK(autofill_type.group() != AutoFillType::CREDIT_CARD);
+ DCHECK_NE(autofill_type.group(), AutoFillType::CREDIT_CARD);
FillFormField(profile, autofill_type, &(*iter));
} else {
- DCHECK(autofill_type.group() == AutoFillType::CREDIT_CARD);
+ DCHECK_EQ(autofill_type.group(), AutoFillType::CREDIT_CARD);
FillCreditCardFormField(credit_card, autofill_type, &(*iter));
}
break;
@@ -491,10 +491,10 @@
AutoFillType autofill_type(form_structure->field(k)->type());
if (autofill_type.group() != AutoFillType::NO_GROUP) {
if (profile) {
- DCHECK(autofill_type.group() != AutoFillType::CREDIT_CARD);
+ DCHECK_NE(autofill_type.group(), AutoFillType::CREDIT_CARD);
FillFormField(profile, autofill_type, &result.fields[j]);
} else {
- DCHECK(autofill_type.group() == AutoFillType::CREDIT_CARD);
+ DCHECK_EQ(autofill_type.group(), AutoFillType::CREDIT_CARD);
FillCreditCardFormField(credit_card, autofill_type, &result.fields[j]);
}
}
@@ -873,7 +873,7 @@
AutoFillType type,
webkit_glue::FormField* field) {
DCHECK(credit_card);
- DCHECK(type.group() == AutoFillType::CREDIT_CARD);
+ DCHECK_EQ(type.group(), AutoFillType::CREDIT_CARD);
DCHECK(field);
if (field->form_control_type() == ASCIIToUTF16("select-one")) {
@@ -898,7 +898,7 @@
AutoFillType type,
webkit_glue::FormField* field) {
DCHECK(profile);
- DCHECK(type.group() != AutoFillType::CREDIT_CARD);
+ DCHECK_NE(type.group(), AutoFillType::CREDIT_CARD);
DCHECK(field);
if (type.subgroup() == AutoFillType::PHONE_NUMBER) {

Powered by Google App Engine
This is Rietveld 408576698