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

Unified Diff: content/renderer/media/user_media_client_impl.cc

Issue 2584893002: Use explicit WebString <-> string16 conversion methods in media files (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
Index: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index b7cccf798c82c70fe6efabcf384042b1a65fed5f..dfe6f243b726feff5b73ae18a47c4a0fe1c4d644 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -443,7 +443,7 @@ void UserMediaClientImpl::OnStreamGenerated(
CreateVideoTracks(video_array, request_info->request.videoConstraints(),
&video_track_vector, request_info);
- blink::WebString webkit_id = base::UTF8ToUTF16(label);
+ blink::WebString webkit_id = blink::WebString::fromUTF8(label);
blink::WebMediaStream* web_stream = &(request_info->web_stream);
web_stream->initialize(webkit_id, audio_track_vector,
@@ -554,11 +554,9 @@ void UserMediaClientImpl::InitializeSourceObject(
return;
}
- webkit_source->initialize(
- base::UTF8ToUTF16(device.device.id),
- type,
- base::UTF8ToUTF16(device.device.name),
- false /* remote */);
+ webkit_source->initialize(blink::WebString::fromUTF8(device.device.id), type,
+ blink::WebString::fromUTF8(device.device.name),
+ false /* remote */);
DVLOG(1) << "Initialize source object :"
<< "id = " << webkit_source->id().utf8()

Powered by Google App Engine
This is Rietveld 408576698