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

Unified Diff: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc

Issue 2875103003: DCHECK -> LOG_IF in payment request shipping address (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
index a5f43f9fb610b0d97cbbcd082763b4f6ba61d4c9..de7486cf37a59b56efeb614d991eaee84b86d55a 100644
--- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
@@ -334,7 +334,7 @@ bool ShippingAddressEditorViewController::SaveFieldsToProfile(
success = profile->SetInfo(autofill::AutofillType(field.second.type),
field.first->text(), locale);
}
- DCHECK(success || ignore_errors)
+ LOG_IF(ERROR, success || ignore_errors)
anthonyvd 2017/05/11 20:06:29 Are those going to be useful (especially after we
MAD 2017/05/11 20:19:53 Should still be useful in browser tests. Doesn't t
anthonyvd 2017/05/11 20:21:59 I don't think so. This is called when the Done but
<< "Can't setinfo(" << field.second.type << ", " << field.first->text();
if (!success && !ignore_errors)
return false;
@@ -356,9 +356,8 @@ bool ShippingAddressEditorViewController::SaveFieldsToProfile(
combobox->GetTextForRow(combobox->selected_index()), locale);
}
}
- DCHECK(success || ignore_errors)
+ LOG_IF(ERROR, success || ignore_errors)
<< "Can't setinfo(" << field.second.type << ", "
-
<< combobox->GetTextForRow(combobox->selected_index());
if (!success && !ignore_errors)
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698