| Index: chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
| diff --git a/chrome/browser/ui/views/payments/order_summary_view_controller.cc b/chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
| index 04a822c83d26a5c806f4d9af95ce3b84b02af582..cd87f465d773c6a0ab15fd3277d750e0f4cf8c1e 100644
|
| --- a/chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
| +++ b/chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
| @@ -10,10 +10,10 @@
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| -#include "chrome/browser/payments/payment_request_impl.h"
|
| #include "chrome/browser/ui/views/payments/payment_request_dialog.h"
|
| #include "chrome/browser/ui/views/payments/payment_request_views_util.h"
|
| #include "chrome/grit/generated_resources.h"
|
| +#include "components/payments/payment_request.h"
|
| #include "components/strings/grit/components_strings.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/views/controls/label.h"
|
| @@ -23,8 +23,9 @@
|
| namespace payments {
|
|
|
| OrderSummaryViewController::OrderSummaryViewController(
|
| - PaymentRequestImpl* impl, PaymentRequestDialog* dialog)
|
| - : PaymentRequestSheetController(impl, dialog) {}
|
| + PaymentRequest* request,
|
| + PaymentRequestDialog* dialog)
|
| + : PaymentRequestSheetController(request, dialog) {}
|
|
|
| OrderSummaryViewController::~OrderSummaryViewController() {}
|
|
|
| @@ -38,12 +39,11 @@ std::unique_ptr<views::View> OrderSummaryViewController::CreateView() {
|
| 0, views::GridLayout::USE_PREF, 0, 0);
|
|
|
| layout->StartRow(0, 0);
|
| - layout->AddView(new views::Label(
|
| - l10n_util::GetStringFUTF16(
|
| - IDS_PAYMENT_REQUEST_ORDER_SUMMARY_SECTION_TOTAL_FORMAT,
|
| - base::ASCIIToUTF16(impl()->details()->total->label),
|
| - base::ASCIIToUTF16(impl()->details()->total->amount->value),
|
| - base::ASCIIToUTF16(impl()->details()->total->amount->currency))));
|
| + layout->AddView(new views::Label(l10n_util::GetStringFUTF16(
|
| + IDS_PAYMENT_REQUEST_ORDER_SUMMARY_SECTION_TOTAL_FORMAT,
|
| + base::ASCIIToUTF16(request()->details()->total->label),
|
| + base::ASCIIToUTF16(request()->details()->total->amount->value),
|
| + base::ASCIIToUTF16(request()->details()->total->amount->currency))));
|
|
|
| return payments::CreatePaymentView(
|
| CreateSheetHeaderView(
|
|
|