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 { |