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

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

Issue 2923533002: [Merge M60][Payments] Do not select an address if the merchant doesn't support it (Closed)
Patch Set: Created 3 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: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
index 469736473f24e1c5274b4b32a78b4ad795b98dde..f0abe4cba34f79c05f9d7f5b1c375b8c9ede0c28 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
@@ -622,19 +622,9 @@ PaymentSheetViewController::CreateShippingSectionContent() {
if (!profile)
return base::MakeUnique<views::Label>(base::string16());
- // If there is a shipping option error related to the selected address,
- // display it (without disabling the row because the user should feel like
- // they can click on it to correct the problem). Otherwise, display the
- // address possibly with the missing information to make it complete.
- if (!spec()->selected_shipping_option_error().empty()) {
- return GetShippingAddressLabelWithError(
- AddressStyleType::SUMMARY, state()->GetApplicationLocale(), *profile,
- spec()->selected_shipping_option_error(), /*disabled_state=*/false);
- } else {
- return GetShippingAddressLabelWithMissingInfo(
- AddressStyleType::SUMMARY, state()->GetApplicationLocale(), *profile,
- *(state()->profile_comparator()));
- }
+ return GetShippingAddressLabelWithMissingInfo(
+ AddressStyleType::SUMMARY, state()->GetApplicationLocale(), *profile,
+ *(state()->profile_comparator()));
}
// Creates the Shipping row, which contains a "Shipping address" label, the

Powered by Google App Engine
This is Rietveld 408576698