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

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

Issue 2841643002: When a new Payments address is created from the editor, use it as the chosen address (Closed)
Patch Set: Self CR 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: components/payments/content/payment_request_state.h
diff --git a/components/payments/content/payment_request_state.h b/components/payments/content/payment_request_state.h
index 37d62824771f4d4c8de6956979b3e974b45cdfe4..05c0f04946fd0fda01fee71ca5864b80b5e8b602 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -130,6 +130,12 @@ class PaymentRequestState : public PaymentResponseHelper::Delegate {
void AddAutofillPaymentInstrument(bool selected,
const autofill::CreditCard& card);
+ // Creates and adds an AutofillProfile as a shipping profile, which makes a
+ // copy of |profile|. |selected| indicates if the newly-created shipping
+ // profile should be selected, after which observers will be notified.
+ void AddAutofillShippingProfile(bool selected,
+ const autofill::AutofillProfile& profile);
+
// Setters to change the selected information. Will have the side effect of
// recomputing "is ready to pay" and notify observers.
void SetSelectedShippingOption(const std::string& shipping_option_id);

Powered by Google App Engine
This is Rietveld 408576698