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

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

Issue 2849523003: Add billing address as a mandatory field of Payments credit cards. (Closed)
Patch Set: Merge branch 'master' into billing Created 3 years, 7 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/profile_list_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.cc b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
index 04e43037d75437d7f806577747acf30ee52a9050..f30561a67ca62d93cc6ce861f519e057416490be 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
@@ -135,9 +135,10 @@ class ShippingProfileViewController : public ProfileListViewController {
void ShowEditor(autofill::AutofillProfile* profile) override {
dialog()->ShowShippingAddressEditor(
- /*on_edited=*/base::BindOnce(
- &PaymentRequestState::SetSelectedShippingProfile,
- base::Unretained(state()), profile),
+ BackNavigationType::kPaymentSheet,
+ /*on_edited=*/
+ base::BindOnce(&PaymentRequestState::SetSelectedShippingProfile,
+ base::Unretained(state()), profile),
/*on_added=*/
base::BindOnce(&PaymentRequestState::AddAutofillShippingProfile,
base::Unretained(state()), /*selected=*/true),
@@ -244,7 +245,7 @@ class ContactProfileViewController : public ProfileListViewController {
}
void ShowEditor(autofill::AutofillProfile* profile) override {
- dialog()->ShowContactInfoEditor(profile);
+ dialog()->ShowContactInfoEditor(BackNavigationType::kPaymentSheet, profile);
}
autofill::AutofillProfile* GetSelectedProfile() override {

Powered by Google App Engine
This is Rietveld 408576698