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

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

Issue 2830053002: [Web Payments] Correctly use UTF8ToUTF16 on strings from website. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | chrome/browser/ui/views/payments/payment_sheet_view_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d26b78ecc83e54c5adb1b1bd681a0081b2f3ea61..375ec5fe136e76eef67691390b2bd4e16e37d99c 100644
--- a/chrome/browser/ui/views/payments/payment_request_views_util.cc
+++ b/chrome/browser/ui/views/payments/payment_request_views_util.cc
@@ -288,7 +288,7 @@ std::unique_ptr<views::View> CreateShippingOptionLabel(
if (shipping_option) {
std::unique_ptr<views::Label> shipping_label =
base::MakeUnique<views::Label>(
- base::ASCIIToUTF16(shipping_option->label));
+ base::UTF8ToUTF16(shipping_option->label));
shipping_label->set_id(
static_cast<int>(DialogViewID::SHIPPING_OPTION_DESCRIPTION));
container->AddChildView(shipping_label.release());
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/payment_sheet_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698