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

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

Issue 2855203002: [Payments] Display the shipping option error alongside the address (Closed)
Patch Set: added tests Created 3 years, 8 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/shipping_option_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
index df0bc625d41b6b414638029bcbb37ca63b4f4df7..bc3f9993dcb8266ce166e00020d599ac7a1409fc 100644
--- a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
@@ -43,7 +43,12 @@ class ShippingOptionItem : public PaymentRequestItemList::Item {
}
}
- bool CanBeSelected() const override {
+ bool IsDisabled() override {
+ // Shipping options are vetted by the website; none are disabled.
+ return false;
+ }
+
+ bool CanBeSelected() override {
// Shipping options are vetted by the website; they're all OK to select.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698