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

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

Issue 34393006: Refactor MediaStreamManager to never output real device id. It now always output sourceId in the fo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix policy build error. Fix tab capture Created 7 years, 2 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/renderer/media/mock_media_stream_dispatcher.cc
diff --git a/content/renderer/media/mock_media_stream_dispatcher.cc b/content/renderer/media/mock_media_stream_dispatcher.cc
index a1b9527959fe6c7baac2de3d64ea126eae0f8fb6..823af11ca1db50195c3a77ea08db04e5fae354b7 100644
--- a/content/renderer/media/mock_media_stream_dispatcher.cc
+++ b/content/renderer/media/mock_media_stream_dispatcher.cc
@@ -34,7 +34,7 @@ void MockMediaStreamDispatcher::GenerateStream(
if (IsAudioMediaType(components.audio_type)) {
StreamDeviceInfo audio;
- audio.device.id = "audio_device_id";
+ audio.device.id = base::StringPrintf("%s%d","audio_device_id", session_id_);
justinlin 2013/10/25 20:54:12 nit: here and below, add space after commas
perkj_chrome 2013/10/27 14:26:36 Done.
audio.device.name = "microphone";
audio.device.type = components.audio_type;
audio.session_id = session_id_;
@@ -42,7 +42,7 @@ void MockMediaStreamDispatcher::GenerateStream(
}
if (IsVideoMediaType(components.video_type)) {
StreamDeviceInfo video;
- video.device.id = "video_device_id";
+ video.device.id = base::StringPrintf("%s%d","video_device_id", session_id_);
video.device.name = "usb video camera";
video.device.type = components.video_type;
video.session_id = session_id_;

Powered by Google App Engine
This is Rietveld 408576698