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

Unified Diff: content/renderer/renderer_blink_platform_impl.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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webcookiejar_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index c4a009dc7ab3ff296833d3ed099402d86a7bbe44..35603d420c0b6beef06469a39671e9ff25109085 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -426,7 +426,8 @@ RendererBlinkPlatformImpl::MimeRegistry::supportsMediaMIMEType(
return IsNotSupported;
std::string key_system_ascii =
- media::GetUnprefixedKeySystemName(base::UTF16ToASCII(key_system));
+ media::GetUnprefixedKeySystemName(base::UTF16ToASCII(
+ base::StringPiece16(key_system)));
std::vector<std::string> strict_codecs;
media::ParseCodecString(ToASCIIOrEmpty(codecs), &strict_codecs, true);
@@ -721,7 +722,8 @@ WebAudioDevice* RendererBlinkPlatformImpl::createAudioDevice(
int session_id = 0;
if (input_device_id.isNull() ||
- !base::StringToInt(base::UTF16ToUTF8(input_device_id), &session_id)) {
+ !base::StringToInt(base::UTF16ToUTF8(
+ base::StringPiece16(input_device_id)), &session_id)) {
if (input_channels > 0)
DLOG(WARNING) << "createAudioDevice(): request for audio input ignored";
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_webcookiejar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698