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

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: Components Unittests fix 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 bf552f5a6bdca0654d33a37459c7a41afca043d2..0147209c6b9fb1def2390d94768147f3fa237ce2 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
@@ -117,9 +117,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),
@@ -187,7 +188,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