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

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

Issue 2741343011: [Payments] Move PersonalDataManager and locale to PaymentRequestState (Closed)
Patch Set: Initial 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/shipping_option_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
index ad68373102bec45f194f19015df8c45d7fbc07de..78c2b1688c7ebed9f203c46eb2aa7912cd38f43d 100644
--- a/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
+++ b/chrome/browser/ui/views/payments/shipping_option_view_controller.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/ui/views/payments/payment_request_views_util.h"
#include "components/payments/content/payment_request.h"
+#include "components/payments/content/payment_request_spec.h"
namespace payments {
@@ -25,8 +26,8 @@ class ShippingOptionItem : public PaymentRequestItemList::Item {
// payments::PaymentRequestItemList::Item:
std::unique_ptr<views::View> CreateItemView() override {
return CreateShippingOptionLabel(
- shipping_option_,
- request()->GetFormattedCurrencyAmount(shipping_option_->amount->value));
+ shipping_option_, request()->spec()->GetFormattedCurrencyAmount(
+ shipping_option_->amount->value));
}
void SelectedStateChanged() override {}
« no previous file with comments | « chrome/browser/ui/views/payments/profile_list_view_controller.cc ('k') | components/payments/content/payment_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698