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

Unified Diff: content/renderer/pepper/pepper_media_stream_video_track_host.cc

Issue 2599713002: Use explicit WebString <-> string{16,} conversion methods in content/renderer/pepper (Closed)
Patch Set: . Created 4 years 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/pepper/host_globals.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_media_stream_video_track_host.cc
diff --git a/content/renderer/pepper/pepper_media_stream_video_track_host.cc b/content/renderer/pepper/pepper_media_stream_video_track_host.cc
index 288bae36997fac871834b479fc430c5bdb139b16..f536ef3ff515b377a5a25428776d4dcb09efe44c 100644
--- a/content/renderer/pepper/pepper_media_stream_video_track_host.cc
+++ b/content/renderer/pepper/pepper_media_stream_video_track_host.cc
@@ -517,9 +517,9 @@ void PepperMediaStreamVideoTrackHost::InitBlinkTrack() {
std::string source_id;
base::Base64Encode(base::RandBytesAsString(64), &source_id);
blink::WebMediaStreamSource webkit_source;
- webkit_source.initialize(base::UTF8ToUTF16(source_id),
+ webkit_source.initialize(blink::WebString::fromASCII(source_id),
blink::WebMediaStreamSource::TypeVideo,
- base::UTF8ToUTF16(kPepperVideoSourceName),
+ blink::WebString::fromASCII(kPepperVideoSourceName),
kinuko 2016/12/22 06:53:21 Looks like source_id (which is base64 encoded stri
false /* remote */);
MediaStreamVideoSource* const source =
new VideoSource(weak_factory_.GetWeakPtr());
« no previous file with comments | « content/renderer/pepper/host_globals.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698