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

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

Issue 2611253004: [Payment Request] Change the lifetime management of PaymentRequestImpl (Closed)
Patch Set: PaymentRequestImpl -> PaymentRequest Created 3 years, 11 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
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
index b029fa5c0f28160483be84651449c778a4c33d0b..d085b26e922c1f849152ad1e20dd51d91c05c81e 100644
--- a/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
@@ -9,10 +9,10 @@
#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 "third_party/skia/include/core/SkColor.h"
#include "ui/base/l10n/l10n_util.h"
@@ -114,8 +114,9 @@ class PaymentSheetRow : public views::CustomButton {
} // namespace
PaymentSheetViewController::PaymentSheetViewController(
- PaymentRequestImpl* impl, PaymentRequestDialog* dialog)
- : PaymentRequestSheetController(impl, dialog) {}
+ PaymentRequest* request,
+ PaymentRequestDialog* dialog)
+ : PaymentRequestSheetController(request, dialog) {}
PaymentSheetViewController::~PaymentSheetViewController() {}
@@ -156,12 +157,11 @@ void PaymentSheetViewController::ButtonPressed(
std::unique_ptr<views::View>
PaymentSheetViewController::CreateOrderSummarySectionContent() {
- base::string16 label_value =
- l10n_util::GetStringFUTF16(
- IDS_PAYMENT_REQUEST_ORDER_SUMMARY_SECTION_TOTAL_FORMAT,
- base::ASCIIToUTF16(impl()->details()->total->label),
- base::ASCIIToUTF16(impl()->details()->total->amount->currency),
- base::ASCIIToUTF16(impl()->details()->total->amount->value));
+ base::string16 label_value = l10n_util::GetStringFUTF16(
+ IDS_PAYMENT_REQUEST_ORDER_SUMMARY_SECTION_TOTAL_FORMAT,
+ base::ASCIIToUTF16(request()->details()->total->label),
+ base::ASCIIToUTF16(request()->details()->total->amount->currency),
+ base::ASCIIToUTF16(request()->details()->total->amount->value));
return base::MakeUnique<views::Label>(label_value);
}
« no previous file with comments | « chrome/browser/ui/views/payments/payment_sheet_view_controller.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698