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 029b0638c4e3ced5da47532ccb1c32e5b6504b51..099ade5c1922cb7334c7a3fdebb47c65f8f4ccee 100644 |
--- a/content/browser/renderer_host/media/media_stream_manager.cc |
+++ b/content/browser/renderer_host/media/media_stream_manager.cc |
@@ -461,6 +461,19 @@ MediaDevicesManager* MediaStreamManager::media_devices_manager() { |
return media_devices_manager_.get(); |
} |
+void MediaStreamManager::AddVideoCaptureObserver( |
tommi (sloooow) - chröme
2017/02/14 09:11:19
please make sure that these to methods are always
shenghao
2017/02/15 03:00:38
Done.
|
+ media::VideoCaptureObserver* capture_observer) { |
+ if (video_capture_manager_.get() != nullptr) { |
+ video_capture_manager_->AddVideoCaptureObserver(capture_observer); |
+ } |
+} |
+ |
+void MediaStreamManager::RemoveAllVideoCaptureObservers() { |
+ if (video_capture_manager_.get() != nullptr) { |
+ video_capture_manager_->RemoveAllVideoCaptureObservers(); |
+ } |
+} |
+ |
std::string MediaStreamManager::MakeMediaAccessRequest( |
int render_process_id, |
int render_frame_id, |