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

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

Issue 2735803003: [WebPayments] Extracting common code from Shipping + Contact Info views. (Closed)
Patch Set: monday rebase Created 3 years, 9 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/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 96f5fb4d9df217d142c8183d92bc1610e43e16e2..71e42202008b4170494a8aa32b24410ac37bb69b 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -8,12 +8,11 @@
#include "base/logging.h"
#include "base/memory/ptr_util.h"
-#include "chrome/browser/ui/views/payments/contact_info_view_controller.h"
#include "chrome/browser/ui/views/payments/credit_card_editor_view_controller.h"
#include "chrome/browser/ui/views/payments/order_summary_view_controller.h"
#include "chrome/browser/ui/views/payments/payment_method_view_controller.h"
#include "chrome/browser/ui/views/payments/payment_sheet_view_controller.h"
-#include "chrome/browser/ui/views/payments/shipping_list_view_controller.h"
+#include "chrome/browser/ui/views/payments/profile_list_view_controller.h"
#include "components/constrained_window/constrained_window_views.h"
#include "components/payments/content/payment_request.h"
#include "content/public/browser/browser_thread.h"
@@ -101,10 +100,11 @@ void PaymentRequestDialogView::GoBack() {
observer_for_testing_->OnBackNavigation();
}
-void PaymentRequestDialogView::ShowContactInfoSheet() {
+void PaymentRequestDialogView::ShowContactProfileSheet() {
view_stack_.Push(
CreateViewAndInstallController(
- base::MakeUnique<ContactInfoViewController>(request_, this),
+ ProfileListViewController::GetContactProfileViewController(request_,
+ this),
&controller_map_),
/* animate */ true);
if (observer_for_testing_)
@@ -131,10 +131,11 @@ void PaymentRequestDialogView::ShowPaymentMethodSheet() {
observer_for_testing_->OnPaymentMethodOpened();
}
-void PaymentRequestDialogView::ShowShippingListSheet() {
+void PaymentRequestDialogView::ShowShippingProfileSheet() {
view_stack_.Push(
CreateViewAndInstallController(
- base::MakeUnique<ShippingListViewController>(request_, this),
+ ProfileListViewController::GetShippingProfileViewController(request_,
+ this),
&controller_map_),
/* animate = */ true);
}

Powered by Google App Engine
This is Rietveld 408576698