Index: chrome/browser/ui/views/payments/payment_request_views_util.cc |
diff --git a/chrome/browser/ui/views/payments/payment_request_views_util.cc b/chrome/browser/ui/views/payments/payment_request_views_util.cc |
index 0a6d5bebf8c29f2da5f40a06b70a40f13425abe8..f1ea05d6826c523e8a0f8868eb1afca390307865 100644 |
--- a/chrome/browser/ui/views/payments/payment_request_views_util.cc |
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.cc |
@@ -351,6 +351,15 @@ std::unique_ptr<views::Label> CreateMediumLabel(const base::string16& text) { |
return label; |
} |
+std::unique_ptr<views::Label> CreateHintLabel( |
+ const base::string16& text, |
+ gfx::HorizontalAlignment alignment) { |
+ std::unique_ptr<views::Label> label = base::MakeUnique<views::Label>( |
+ text, views::style::CONTEXT_LABEL, STYLE_HINT); |
+ label->SetHorizontalAlignment(alignment); |
+ return label; |
+} |
+ |
std::unique_ptr<views::View> CreateShippingOptionLabel( |
payments::mojom::PaymentShippingOption* shipping_option, |
const base::string16& formatted_amount, |