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

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: And yet another small goof fix... :-( 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 508bd979ee1dbc4c27385fcd6a69965a95465a6b..9ff914228203d2271ad19c622810816074762d54 100644
--- a/components/payments/content/payment_request_state.h
+++ b/components/payments/content/payment_request_state.h
@@ -124,6 +124,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