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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.cc

Issue 11298006: Browser-wide audio mirroring for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adress nits Created 8 years, 1 month 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/browser/renderer_host/media/media_stream_manager.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager.cc b/content/browser/renderer_host/media/media_stream_manager.cc
index b36919ee2fc92395ee6393526080d9649f365631..d3541940137fd03c5a555d887f75cc54b66109e1 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -109,6 +109,13 @@ class MediaStreamManager::DeviceRequest {
if (media_observer == NULL)
return;
+ // If we appended a device_id scheme, we want to remove it when notifying
+ // observers which may be in different modules since this scheme is only
+ // used internally within the content module.
+ std::string device_id =
+ WebContentsCaptureUtil::StripWebContentsDeviceScheme(
+ requested_device_id);
+
media_observer->OnMediaRequestStateChanged(
render_process_id, render_view_id,
MediaStreamDevice(

Powered by Google App Engine
This is Rietveld 408576698