Chromium Code Reviews| Index: chrome/browser/ui/views/payments/payment_request_dialog_view.cc |
| diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc |
| index eb88d2fea5b15b3b9ac5993e2952269ded2173d1..209bff40927000b6e60319261729d325c05f3e46 100644 |
| --- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc |
| +++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc |
| @@ -8,6 +8,7 @@ |
| #include "base/logging.h" |
| #include "base/memory/ptr_util.h" |
| +#include "chrome/browser/ui/views/payments/contact_info_editor_view_controller.h" |
| #include "chrome/browser/ui/views/payments/credit_card_editor_view_controller.h" |
| #include "chrome/browser/ui/views/payments/cvc_unmask_view_controller.h" |
| #include "chrome/browser/ui/views/payments/error_message_view_controller.h" |
| @@ -245,6 +246,17 @@ void PaymentRequestDialogView::ShowShippingAddressEditor( |
| observer_for_testing_->OnShippingAddressEditorOpened(); |
| } |
| +void PaymentRequestDialogView::ShowContactInfoEditor( |
| + autofill::AutofillProfile* profile) { |
| + view_stack_->Push(CreateViewAndInstallController( |
| + base::MakeUnique<ContactInfoEditorViewController>( |
| + request_->spec(), request_->state(), this, profile), |
| + &controller_map_), |
| + /* animate = */ true); |
| + if (observer_for_testing_) |
| + observer_for_testing_->OnContactInfoEditorOpened(); |
|
Mathieu
2017/04/17 02:50:10
testing observer but no test file is included. Did
tmartino
2017/04/18 19:39:18
I'm writing them now. Haven't decided whether to w
|
| +} |
| + |
| void PaymentRequestDialogView::EditorViewUpdated() { |
| if (observer_for_testing_) |
| observer_for_testing_->OnEditorViewUpdated(); |