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

Unified Diff: components/payments/content/payment_request.h

Issue 2725963002: [Payments] Only show the required rows in the Payment Request dialog (Closed)
Patch Set: Created 3 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: components/payments/content/payment_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index 2a20d68267e7744bc118c385ebb1765b97846dcb..18d3f94229b3c6e85ff5fbc602fb4e6f58a1725c 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -130,6 +130,11 @@ class PaymentRequest : payments::mojom::PaymentRequest {
}
content::WebContents* web_contents() { return web_contents_; }
+ bool request_shipping() const { return options_->request_shipping; }
+ bool request_payer_name() const { return options_->request_payer_name; }
+ bool request_payer_phone() const { return options_->request_payer_phone; }
+ bool request_payer_email() const { return options_->request_payer_email; }
+
bool is_ready_to_pay() { return is_ready_to_pay_; }
private:

Powered by Google App Engine
This is Rietveld 408576698