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

Unified Diff: components/payments/payment_request.h

Issue 2711973002: [Web Payments] Implement the credit card selection UI functionality. (Closed)
Patch Set: Address comments and add set_selected_credit_card in PaymentRequest 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/payment_request.h
diff --git a/components/payments/payment_request.h b/components/payments/payment_request.h
index 0207c6b1b705398b3bc83964b2227d12ac3ff805..551d8ffec00d98c8a43cdf033bf513b6ecda1b24 100644
--- a/components/payments/payment_request.h
+++ b/components/payments/payment_request.h
@@ -100,6 +100,10 @@ class PaymentRequest : payments::mojom::PaymentRequest {
// card.
autofill::CreditCard* selected_credit_card() { return selected_credit_card_; }
+ void set_selected_credit_card(autofill::CreditCard* credit_card) {
+ selected_credit_card_ = credit_card;
+ }
+
autofill::PersonalDataManager* personal_data_manager() {
return delegate_->GetPersonalDataManager();
}

Powered by Google App Engine
This is Rietveld 408576698