| 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 f35c8dc5233a56751b1dd6a6d7677174b6ad11d3..289787f18da7585e224b2cf928d6c05d558c6214 100644
|
| --- a/content/browser/renderer_host/media/media_stream_manager.cc
|
| +++ b/content/browser/renderer_host/media/media_stream_manager.cc
|
| @@ -192,8 +192,6 @@ bool CalledOnIOThread() {
|
| !BrowserThread::IsMessageLoopValid(BrowserThread::IO);
|
| }
|
|
|
| -void DummyEnumerationCallback(const AudioOutputDeviceEnumeration& e) {}
|
| -
|
| } // namespace
|
|
|
|
|
| @@ -936,13 +934,6 @@ void MediaStreamManager::StartMonitoring() {
|
| monitoring_started_ = true;
|
| base::SystemMonitor::Get()->AddDevicesChangedObserver(this);
|
|
|
| - // Enable caching for audio output device enumerations and do an enumeration
|
| - // to populate the cache.
|
| - audio_output_device_enumerator_->SetCachePolicy(
|
| - AudioOutputDeviceEnumerator::CACHE_POLICY_MANUAL_INVALIDATION);
|
| - audio_output_device_enumerator_->Enumerate(
|
| - base::Bind(&DummyEnumerationCallback));
|
| -
|
| // Enumerate both the audio and video input devices to cache the device lists
|
| // and send them to media observer.
|
| ++active_enumeration_ref_count_[MEDIA_DEVICE_AUDIO_CAPTURE];
|
| @@ -2057,7 +2048,6 @@ void MediaStreamManager::OnDevicesChanged(
|
| MediaStreamType stream_type;
|
| if (device_type == base::SystemMonitor::DEVTYPE_AUDIO_CAPTURE) {
|
| stream_type = MEDIA_DEVICE_AUDIO_CAPTURE;
|
| - audio_output_device_enumerator_->InvalidateCache();
|
| } else if (device_type == base::SystemMonitor::DEVTYPE_VIDEO_CAPTURE) {
|
| stream_type = MEDIA_DEVICE_VIDEO_CAPTURE;
|
| } else {
|
|
|