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

Unified Diff: content/child/browser_font_resource_trusted.cc

Issue 1259673002: Make UTF16ToASCII and UTF16TOUTF8 take a StringPiece (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: content/child/browser_font_resource_trusted.cc
diff --git a/content/child/browser_font_resource_trusted.cc b/content/child/browser_font_resource_trusted.cc
index b75c79d4ea189237f2ca6607fb84638466f090f0..a48a1ad846285c6daf6378bf82d2a30fa2f7feac 100644
--- a/content/child/browser_font_resource_trusted.cc
+++ b/content/child/browser_font_resource_trusted.cc
@@ -272,8 +272,8 @@ PP_Bool BrowserFontResource_Trusted::Describe(
// While converting the other way in PPFontDescToWebFontDesc we validated
// that the enums can be casted.
WebFontDescription web_desc = font_->fontDescription();
- description->face =
- StringVar::StringToPPVar(base::UTF16ToUTF8(web_desc.family));
+ description->face = StringVar::StringToPPVar(base::UTF16ToUTF8(
+ base::StringPiece16(web_desc.family)));
description->family =
static_cast<PP_BrowserFont_Trusted_Family>(web_desc.genericFamily);
description->size = static_cast<uint32_t>(web_desc.size);
« no previous file with comments | « components/html_viewer/web_mime_registry_impl.cc ('k') | content/child/notifications/notification_data_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698